Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: method aliases with goto(&NAME)

by tobyink (Abbot)
on Sep 17, 2013 at 11:32 UTC ( #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
Node Status?
node history
Node Type: note [id://1054424]
help
Chatterbox?
[stevieb]: TFIF. Way too stressful of a week at work. Glad it's over :)

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2017-07-21 21:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (335 votes). Check out past polls.