![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
Re: Pipe Error Trappingby dpuu (Chaplain) |
on Aug 24, 2004 at 16:13 UTC ( #385434=note: print w/replies, xml ) | Need Help?? |
When opening a command to a pipe, the open command will only fail if the command you're trying to run (gzcat) doesn't exist. You need to check if the command found an error, after it started running.
The solution is to check the return value of other functions -- specifically, the close function:
--Dave Opinions my own; statements of fact may be in error.
In Section
Seekers of Perl Wisdom
|
|