Help for this page

Select Code to Download


  1. or download this
    # Uses RunPipe_PerlMonks module to run and trap failures in piped comm
    +ands.
    use strict;
    ...
    {
        print "Failed! cmd = '$failed_cmd'\n";
    }
    
  2. or download this
    package RunPipe_PerlMonks;
    use strict; use warnings;
    ...
    }
    
    1;
    
  3. or download this
    # This version uses subs instead of classes.
    use strict;
    ...
    {
        print "I'm child #1\n";
    }
    
  4. or download this
    I'm child #1
    I'm child #2
    waitpid1 (in child #2) = '-1'
    waitpid1 (in parent #2) = '25341'