weidagang2046的專欄

          物格而后知致
          隨筆 - 8, 文章 - 409, 評論 - 101, 引用 - 0

          導航

          <2025年7月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          常用鏈接

          留言簿(12)

          隨筆檔案(8)

          文章分類(421)

          文章檔案(409)

          相冊

          Link

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          Perl Tips 2006/8/19

          2?Perl language tips are met today.

          1.?a code snippet is as follows:
          ?
          $code[$idx] =~ /^\s*(.+?)\s*$/;
          $code[$idx] = $1;

          Seem it's to extract the content without leading and tailing white space. But the (.+?) is still not understood.

          2. a code snippet is as follows:

          my $currentframe;
          $currentframe = {
          ?_pc_ => 0,
          ?_func_ => 'main'
          ?};

          what's the type of $currentframe? handle to a hashtable??


          Answer: $currentframe is a reference to?an anonymous?hash. Usage: $$currentframe{_pc_} or $currentframe->{_pc_}

          posted on 2006-08-19 19:39 weidagang2046 閱讀(337) 評論(0)  編輯  收藏 所屬分類: Perl

          主站蜘蛛池模板: 张家界市| 平度市| 酒泉市| 东丽区| 旺苍县| 望都县| 洛阳市| 当雄县| 都江堰市| 西丰县| 安阳县| 西充县| 新龙县| 萍乡市| 东阳市| 根河市| 安龙县| 晴隆县| 肇东市| 历史| 远安县| 缙云县| 拉萨市| 莱州市| 通辽市| 宜宾县| 孙吴县| 增城市| 福海县| 文昌市| 太保市| 乳山市| 曲靖市| 固原市| 南阳市| 连平县| 桑日县| 洛扎县| 江口县| 喜德县| 秭归县|