in reply to Help with Try::Tiny and Catalyst::Authentication::Realm::Progressive
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Help with Try::Tiny and Catalyst::Authentication::Realm::Progressive (catch { return })
by ghenry (Vicar) on Dec 13, 2011 at 07:26 UTC |
In Section
Seekers of Perl Wisdom