diamond operator in Perl

论坛 期权论坛 脚本     
匿名技术用户   2021-1-9 02:05   11   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 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP