原创
打印文件列表中的文件内容
2008-9-1 08:53
2374
2
2
分类:
工程师职场
#!/usr/bin/perl -w
# $> ./ex1.pl
$filelist = "Hello" ;
open TEST_LIST,$filelist if -e $filelist || die "Can't find the $filelist" ;
print "$filelist was found \n";
while(<TEST_LIST>) {
chomp ;
if (/^(\w+)/){
$testcase = $1;
print "Generating files of testcase < $testcase > ...\n";
print "$testcase" ;
## system ("echo $testcase");
}
}
close TEST_LIST;
文章评论(0条评论)
登录后参与讨论