- or download this
open SH, "| /bin/sh" or die "can't launch subshell: $!";
for my $file ( @files ) {
...
print SH $cmd; # stderr from subshell will go to STDERR
}
close SH;
- or download this
$ run-em-all.pl > log 2> errlog
- or download this
$cmd = "echo running $file 1>&2; perl -Ilib $file"
print SH $cmd;