in reply to Re^3: Stop Command In Perl
in thread Stop Command In Perl
outputsperl -e "$pid = open PIPE, '-|', 'echo one two';$/=' '; while (<PIPE>) +{ print; kill 2, $pid}"
one two
But thisoutputsperl -e "$pid = open PIPE, '-|', 'echo one two';$/=' '; while (<PIPE>) +{ print; close PIPE}"
one
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Stop Command In Perl
by mbethke (Hermit) on Jul 12, 2012 at 22:21 UTC | |
by monsoon (Pilgrim) on Jul 13, 2012 at 05:17 UTC | |
by mbethke (Hermit) on Jul 13, 2012 at 21:50 UTC |