Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: Can't close pipe to invalid process

by ikegami (Patriarch)
on Aug 31, 2015 at 18:00 UTC ( [id://1140557] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -E'
       pipe($r, $w) or die $!;
    ...
       say "ok";
    '
    ok
    
  2. or download this
    $ perl -E'
       open(my $fh, "|-", "perl", "-e", "exit 123") or die $!;
    ...
       say "ok";
    '
    Error 123