more useful options | |
PerlMonks |
Re: exit calling subroutineby Zaxo (Archbishop) |
on Jan 10, 2008 at 08:31 UTC ( [id://661570]=note: print w/replies, xml ) | Need Help?? |
By convention, perl uses an undefined return as you have to signal an error. You need to test that return value to make the convention effective. partial_success() if not defined do_stuff(); It seems that your end logic makes the return value irrelevant. Setting $ERRNO or $! is always useful, since even the shell on end will honor and report that value. After Compline,
In Section
Seekers of Perl Wisdom
|
|