Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Help with Try::Tiny and Catalyst::Authentication::Realm::Progressive (catch { return })by tye (Sage) |
on Dec 13, 2011 at 00:30 UTC ( [id://943216]=note: print w/replies, xml ) | Need Help?? |
You can't make your outer sub return by saying 'return' within the (implied) sub that you passed to 'catch'. catch { return } is the same as &catch( sub { return } ) so the 'return' simply returns from the anonymous sub. - tye
In Section
Seekers of Perl Wisdom
|
|