Help for this page

Select Code to Download


  1. 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;
    
  2. or download this
     $ run-em-all.pl > log 2> errlog
    
  3. or download this
        $cmd = "echo running $file 1>&2; perl -Ilib $file"
        print SH $cmd;