![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 264 阅读 · 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 · 254 阅读 · 0 评论