diamond operator in Perl

前端之家收集整理的这篇文章主要介绍了diamond operator in Perl前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

<> 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";

}

猜你在找的Perl相关文章