GaijinPunch has asked for the wisdom of the Perl Monks concerning the following question:
The problem is, prog will not send me back to a prompt unless I type 'quit'. I tried the following:open ( DUMP, "/path/to/prog argument=value |") || die $!
I even tried closing the file handle, but basically the script won't continue until the pid is killed (externally as it were). Any other way around this? Fork? Something I've traditionally stayed away from, so not exactly sure if that's what I need.my $pid = open ( DUMP, "/path/to/prog argument=value |") || die $! while ( <DUMP> ) { do something } kill 2, $pid;
|
|---|