Perl: the Markov chain saw | |
PerlMonks |
Re^3: Yet more Try::Tiny problelmsby Anonymous Monk |
on May 19, 2013 at 17:43 UTC ( [id://1034234]=note: print w/replies, xml ) | Need Help?? |
:) happens in v5.16.1 also, but if you search Try::Tiny for $_ this caveat is described but real solution is not I found this thread I participated in Lexical $_ in given/when vs. BLOCK arguments which had the real solution, because I ran into similar nonsense before :)
So summary, local $_ should NOT die but work just like our $_ inside given/when Try::Tiny documentation should lead with $::_ I still don't think in terms of given/when -- well I do, but I spell it if/else/unless :D
In Section
Seekers of Perl Wisdom
|
|