<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆-124  評論-194  文章-0  trackbacks-0

    Ways to include code/library from another file (eval, do, require and use)

    1)  do $file is like eval `cat $file`, except the former:
        1.1: searches @INC.
        1.2: bequeaths an *unrelated* lexical scope on the eval'ed code.

    2)  require $file is like do $file, except the former:
        2.1: checks for redundant loading, slipping already loaded files.
        2.2: raises an exception on failure to find, compile, or execute $file.

    3)  require Module is like require "Module.pm", except the former:
        3.1: translates each "::" into your system's directory separator.
        3.2: primes the parser to disambiguate class Module as an indirect object.

    4)  use Module is like require Module, except the former:
        4.1: loads the module at compile time, not run-time.
        4.2: imports symbols and semantics from that package to the current one.


    eval除了可以形成動態(tài)CODE外,還可以做異常捕捉:

      eval {
    ...
    };
    if ($@) {
    errorHandler($@);
    }

    $@在無異常時(shí)是NULL,否則是異常原因
    posted on 2008-08-12 10:42 我愛佳娃 閱讀(446) 評論(0)  編輯  收藏 所屬分類: Perl
    主站蜘蛛池模板: 久久青草91免费观看| 国产亚洲精品91| 91午夜精品亚洲一区二区三区| 亚洲av日韩av高潮潮喷无码| 亚洲VA中文字幕不卡无码| 亚洲AV永久无码区成人网站| 国产精品亚洲精品日韩已满| 亚洲AV无码欧洲AV无码网站| 午夜亚洲www湿好大| 亚洲精品国产情侣av在线| 亚洲乱码一区av春药高潮| 久久精品国产亚洲av麻豆图片| 国产色在线|亚洲| 精品无码专区亚洲| 女人裸身j部免费视频无遮挡| 一级黄色免费大片| 久久精品成人免费看| 日韩在线永久免费播放| 两性刺激生活片免费视频| 成人免费午夜视频| 亚洲成a人片在线观看老师| 亚洲乱码日产一区三区| 亚洲天堂一区二区| 国产午夜亚洲精品国产| 男性gay黄免费网站| 在线观看免费无码视频| 蜜桃AV无码免费看永久| 四虎影院免费在线播放| 亚洲第一黄色网址| 亚洲日本在线看片| 亚洲色精品VR一区区三区| 无码AV动漫精品一区二区免费| 大地资源在线资源免费观看 | 亚洲五月综合缴情婷婷| 亚洲av永久无码精品秋霞电影秋 | 亚洲欧洲自拍拍偷午夜色| 亚洲娇小性xxxx| 日韩一区二区三区免费播放| 免费福利在线视频| 大学生a级毛片免费观看 | 夫妻免费无码V看片|