in reply to if and unless
and then in your do_something function you would just die whenever you detect that you "screwed up".if (test_conditions(@info)) { eval {do_something(@info)}; if ($@) { warn "Failed to do whatever because '$@'"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re (tilly) 1: if and unless
by c0d34w4y (Acolyte) on Dec 15, 2001 at 23:45 UTC | |
by tilly (Archbishop) on Dec 15, 2001 at 23:51 UTC |