develooper Front page | perl.beginners | Postings from February 2002

Re: Not your average system() question...

Thread Previous | Thread Next
February 6, 2002 08:49
Re: Not your average system() question...
Message ID:

I usually do not use system or command ticks.
I always pipe the output to STDOUT if I wish to manipulate the output of
any system
command.  Alternatively, you could redirect output to a TEMP file, then
read from that file,
but "piping" is more efficient.

open MY_STDOUT,  "{system command}  |  " or die "\n\nError running {some
system command}\n\n\n";


William Ampeh (x3939)
Federal Reserve Board

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About