菜鸟perl脚本编写

2025-05-09 13:18:42
推荐回答(1个)
回答1:

#!/usr/bin/env perl


while (<>) {

chomp;

push @file1, $_;

$len ++;

}

while (<>) {

chomp;

push @file2, $_;

}


for ($i = 0; $i < $len; $i ++) {

print $file1[$i],' ',$file2[$i],"\n";

}

给分吧。