in reply to How to return an appropriate error from module?
sub validate_phone_num { return eval { /^$/ or die "No number\n"; ... $cleaned_up_num }; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to return an appropriate error from module?
by zrajm (Beadle) on Mar 06, 2009 at 14:22 UTC | |
by ikegami (Patriarch) on Mar 06, 2009 at 16:25 UTC |