Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; open PIPE, "./foo.pl |"; my @output = <PIPE>; close PIPE; print "error: $?\n" if $?; print "output: $_" foreach @output; print "\nend.\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Executing external Programs
by eieio (Pilgrim) on Mar 22, 2005 at 14:48 UTC | |
|
Re: Executing external Programs
by eXile (Priest) on Mar 22, 2005 at 15:44 UTC | |
|
Re: Executing external Programs
by sh1tn (Priest) on Mar 22, 2005 at 15:03 UTC | |
by polettix (Vicar) on Mar 22, 2005 at 18:35 UTC |