Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: goto superclass method

by Mr. Muskrat (Canon)
on Dec 22, 2004 at 22:00 UTC ( #416927=note: print w/replies, xml ) Need Help??


in reply to •Re^2: goto superclass method
in thread goto superclass method

What's wrong with leaving &Derived::do_me out altogether?

package Base; sub do_me { my $self = shift; print "Base do_me\n"; } package Derived; @ISA = qw(Base); package main; Derived->do_me;

It doesn't use goto but the result is the same as far as I can tell.

Update: Okay, ignore me. I got distracted from the original question of how to conditionally jump to a super class.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2019-03-26 04:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How do you Carpe diem?





    Results (123 votes). Check out past polls.

    Notices?