
Perl
frankliuhome
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Perl using Hashes
初始化%hash1 = (the, 200, of, 149);%hash2 = ("the", 200, "of", 149);%hash3 = (the => 200, of =>149);%hash4 = ("the" => 200, "of" =>149);%hash5 = (1..9)存取++$counts{ $word }原创 2009-08-05 13:26:00 · 289 阅读 · 0 评论 -
Perl using Arrays
初始化@title = ("the", "black", "cat");@title = qw(the black cat);@letters = (A..Z)@numbers = (1..9)增加、删除$last = pop (@title); //删除最右侧$first = shift(@title);原创 2009-08-05 13:20:00 · 287 阅读 · 0 评论