in reply to Re: method aliases with goto(&NAME)
in thread method aliases with goto(&NAME)
OTOH *oldname = *newname;
Yes, I also thought about something like that, but the goto version allows to include more code in the legacy method if needed:
sub legacy_code { warn ("This method is deprecated, use current_method instead"); goto(¤t_method); }
citromatik
|
---|
In Section
Seekers of Perl Wisdom