Perl-Sensitive Sunglasses | |
PerlMonks |
Re^2: method aliases with goto(&NAME)by tobyink (Canon) |
on Sep 18, 2013 at 13:48 UTC ( [id://1054659]=note: print w/replies, xml ) | Need Help?? |
You might be misunderstanding what...
... does. It doesn't execute ¤t_method, and then go to whatever label was returned from ¤t_method. It just goes to ¤t_method. It's not scary; it's not unmaintainable; it's just a tail call. From perlfunc (my emphasis):
use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name
In Section
Seekers of Perl Wisdom
|
|