Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Capture error from one-linerby dirtdog (Monk) |
on Sep 19, 2014 at 16:04 UTC ( [id://1101236]=perlquestion: print w/replies, xml ) | Need Help?? |
dirtdog has asked for the wisdom of the Perl Monks concerning the following question: Hi Monks, Does anyone know how i would capture the return code from a perl one-liner executed from a korn shell script?
if the one-liner fails for any reason I'd like to be able to exit with a failed status from the shell, but what i have doesn't work. any help would be greatly appreciated. thanks
Back to
Seekers of Perl Wisdom
|
|