Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2020-08-06 08:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (39 votes). Check out past polls.

    Notices?