<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除了可以形成動態CODE外,還可以做異常捕捉:

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

    $@在無異常時是NULL,否則是異常原因
    posted on 2008-08-12 10:42 我愛佳娃 閱讀(455) 評論(0)  編輯  收藏 所屬分類: Perl
    主站蜘蛛池模板: 日韩黄色免费观看| 成人毛片免费在线观看| 国产亚洲精品看片在线观看| 日韩久久无码免费毛片软件| 午夜亚洲福利在线老司机| 香港经典a毛片免费观看看| 国产v片免费播放| 免费一级做a爰片久久毛片潮| 亚洲国产一区视频| fc2成年免费共享视频网站| 不卡精品国产_亚洲人成在线| 久久久久久毛片免费看| 亚洲中文字幕不卡无码| 美女在线视频观看影院免费天天看 | 四虎在线免费播放| 亚洲人成色在线观看| 免费人成视频在线观看视频| yy一级毛片免费视频| 亚洲人JIZZ日本人| 免费国产污网站在线观看| 亚洲日韩区在线电影| 无码国产精品一区二区免费式直播| 色在线亚洲视频www| 在线精品免费视频| 亚洲免费无码在线| 亚洲激情在线观看| 女人被男人躁的女爽免费视频| 美女被艹免费视频| 久久精品国产亚洲av成人| 可以免费看黄视频的网站| 青娱乐在线免费观看视频| 亚洲熟女少妇一区二区| 97在线观看永久免费视频| 国产成人综合亚洲一区| 亚洲国产成人高清在线观看 | 亚洲AV无码一区二区三区人| 又黄又爽的视频免费看| 国产成年无码久久久免费| 亚洲精品免费网站| 国产亚洲欧洲Aⅴ综合一区 | 国产又大又粗又硬又长免费 |