perl讀取文件內容

[root@mysql1 perl]# cat test.pl  #!/usr/bin/env perl while (defined($line=<>)) {   chomp($line);   print "it was $line that i saw!\n"; } [root@mysql1 perl]# ./test.pl a.txt b.txt it was a that i saw!
相關文章
相關標籤/搜索