Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: method aliases with goto(&NAME)

by tobyink (Canon)
on Sep 17, 2013 at 11:32 UTC ( [id://1054424]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Parent {
       sub legacy_method {
    ...
    }
    
    Child->legacy_method;  # returns 2
    
  2. or download this
    sub legacy_method {
      my $next = $_[0]->can('current_method');
      goto $next;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-04-25 10:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found