Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: what's a proper way to code method synonyms

by merlyn (Sage)
on Sep 06, 2006 at 23:05 UTC ( #571560=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    *{$new_method} = sub { my $self = shift; $self->$main_spelling(@_) }
    
  2. or download this
    *{$new_method} = sub { goto &{$_[0]->can($main_spelling)} }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2020-10-22 23:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (232 votes). Check out past polls.

    Notices?