Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 musing on the Monastery: (7)
As of 2020-07-09 10:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?