- or download this
use strict;
use warnings;
...
my $proc = spawn( 'file-not-found' } );
$proc->stdin->print("x\n");
$proc->wait_child;
- or download this
main::(j:5): my $proc = spawn( sub { print "hello\n" } );
DB<1> n
...
main::(j:7): $proc->stdin->print("x\n");
DB<1> n
mark@mlt:~/src/sys-cmd$
- or download this
main::(j:5): my $proc = spawn( sub { print "hello\n" } );
DB<1> n
...
main::(j:7): print {$proc->stdin} "x\n";
DB<1> n
mark@mlt:~/src/sys-cmd$
- or download this
$ git clone -b unexpected-termination git://github.com/mlawren/sys-cm
+d
$ cd sys-cmd
$ ./unexpected-termination.pl
Spawning process