Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Question regarding handling exceptions in subroutineby walkingthecow (Friar) |
on May 12, 2013 at 10:12 UTC ( [id://1033181]=note: print w/replies, xml ) | Need Help?? |
The loop is in script.pl and calls the subroutine from Script.pm. When I croak in Script.pm it makes script.pl exit, thus breaking the loop in script.pl. I'd rather have the subroutine in Script.pm return the error to a variable in script.pl. Hopefully that clears things up. I'm terrible at explaining things.
In Section
Seekers of Perl Wisdom
|
|