good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Interpret $? variableby rbala (Acolyte) |
on Sep 12, 2013 at 09:40 UTC ( [id://1053686]=perlquestion: print w/replies, xml ) | Need Help?? |
rbala has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
When a process is successful I see the value stored in this variable is 0. But , if unsucessful, the value is undeterministic and for various commands, I get different outputs. But I just need to check if the command is successful or not. My doubt is, can i confirm that if $? is 0 , then the command is successful ?
Thanks,
Bala.
Back to
Seekers of Perl Wisdom
|
|