关闭

diamond operator in Perl

标签: perl
397人阅读 评论(0) 收藏 举报
分类:

<> to read the file 

@ARGV array: This array is a special array preset by the Perl interpreter as the list of the invocation arguments. In other words, this is like any other array, but when your program starts, @ARGV is already stuffed full of the list of invocation arguments.


@ARGV = qw# a b c #;   # force these files to be read

while (<>){

   chomp;

   print "it was $_ that i saw";

}

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:186814次
    • 积分:3214
    • 等级:
    • 排名:第11084名
    • 原创:106篇
    • 转载:224篇
    • 译文:0篇
    • 评论:2条
    文章分类