Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: method aliases with goto(&NAME)

by citromatik (Curate)
on Sep 17, 2013 at 11:04 UTC ( [id://1054421]=note: print w/replies, xml ) Need Help??


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(&current_method); }

citromatik

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1054421]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2025-07-10 20:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.