Perl: the Markov chain saw | |
PerlMonks |
Re^3: "close" failingby duff (Parson) |
on May 31, 2006 at 14:55 UTC ( [id://552809]=note: print w/replies, xml ) | Need Help?? |
The return value of a piped open tells you if the fork succeeded or not, the return value of close tells you about the execution status of the program in the pipe. So, if $ENV{PATH} is set such that perl can't find the program to be piped to/from, close will return a false value (perl was able to successfully fork, but not execute the piped command).
In Section
Seekers of Perl Wisdom
|
|