in reply to How to check for existence,executabilituy and return code when executing a shell script from perl
Update: And, to boot, if you want to check your return value for non-decimal characters, your test should be $proc =~ /\D/ - your regex syntax does not do what you think. Please read perlretut.
Update 2:You should also get in the habit of using or in place of || - otherwise you may get Burned by precedence rules (operator precedence).
|
|---|