I would opt for your last version, but there also is Scope::Upper::unwind, which lets you return from the perspective of the caller. Not that I really advocate messing with the control flow outside of Perls primitives.
What's your problem with calling die or croak?
In reply to Re: abbreviate 'do { $@="blah blah"; return undef; };
by Corion
in thread abbreviate 'do { $@="blah blah"; return undef; };
by iaw4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |