Perl变量及用法
Perl的變量類型及用法
| 1 2 3 4 5 6 7 8 9 10 11 12 | Variable?types?and?their?uses |?Type???????|?Sigil?|?Example???|?Is?a?Name?For??????????????????????????| |------------+-------+-----------+----------------------------------------| |?Scalar?????|?$?????|?$cents????|?An?individual?value?(number?or?string)?| |?Array??????|?@?????|?@large????|?A?list?of?values,?keyed?by?number??????| |?Hash???????|?%?????|?%interest?|?A?group?of?values,?keyed?by?string?????| |?Subroutine?|?&?????|?&how??????|?A?callable?chunk?of?Perl?code??????????| |?Typeglob???|?*?????|?*struck???|?Everything?named?struck????????????????| #?for?example my?$phrase?=?"Howdy,?world!\n";??#?Create?a?variable print?$phrase;???????????????????#?Print?the?variable |
本文轉自 ? ?bigstone2012 ? 51CTO博客,原文鏈接:http://blog.51cto.com/lavenliu/1637800
總結
- 上一篇: iscsi网络存储介绍及客户端配置操作
- 下一篇: VC中显示ICON和BMP图片