in reply to abbreviate 'do { $@="blah blah"; return undef; };
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?
|
|---|