- or download this
for $file (@files){
$string = "open (A$file, \"perl part2.pl $file|\")";
eval $string; # Error checking omitted for simplicity
}
- or download this
use Symbol qw( gensym );
for $file (@files){
open( my $fh= gensym(), "perl part2.pl $file |" );
# Error checking omitted for simplicity
}
- or download this
for $file (@files){
system( 1, "perl part2.pl $file" );
# Error checking omitted for simplicity
}