|
|
| Do you know where your variables are? | |
| PerlMonks |
Re^3: Question regarding handling exceptions in subroutineby space_monk (Chaplain) |
| on May 12, 2013 at 11:28 UTC ( [id://1033186]=note: print w/replies, xml ) | Need Help?? |
|
The obvious answer is to remove the croak (or perhaps change it to a carp/warn). You can run a command in backticks to trap both the output and the status code it returns. So you should be able to do something like:
If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||