Perl-Sensitive Sunglasses | |
PerlMonks |
Re^2: Perl try { } catch(e) { }by Superfox il Volpone (Sexton) |
on Mar 03, 2015 at 15:18 UTC ( [id://1118614]=note: print w/replies, xml ) | Need Help?? |
Aaaaahh I think I understood now how this is supposed to work:
catch { ... } is invoked before the block in the try { ...}, and all it does is to return the block as a reference to the anonymous function defined by the catch block. Tricky mechanism. Thanks, s.fox
In Section
Seekers of Perl Wisdom
|
|