Perl: the Markov chain saw | |
PerlMonks |
Re^3: Effect of redirecting output to /dev/null on $? valueby ikegami (Patriarch) |
on Aug 05, 2020 at 04:03 UTC ( [id://11120308]=note: print w/replies, xml ) | Need Help?? |
That's horrible advice. The OP is complaining about errors being misreported, and you introduce a new such error. exec failures should not appears as exit code from a successfully launched child. Even system and open3 get that right. (They use a close-on-exec pipe to communicate the errno of failures to the parent.)
In Section
Seekers of Perl Wisdom
|
|