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

          主站蜘蛛池模板: 华蓥市| 麻栗坡县| 蓬安县| 张家口市| 华坪县| 沛县| 江永县| 双流县| 灵丘县| 周口市| 蒙山县| 仲巴县| 策勒县| 庆阳市| 怀远县| 木兰县| 偏关县| 肥乡县| 图木舒克市| 大冶市| 灌云县| 伊通| 萨迦县| 临泉县| 皋兰县| 青川县| 张家港市| 镇赉县| 绥江县| 游戏| 昌乐县| 原平市| 丰都县| 和田县| 东港市| 孟州市| 东丽区| 肥东县| 象山县| 全椒县| 扎赉特旗|