Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
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
Domain Nodelet?
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 perusing the Monastery: (2)
As of 2023-09-25 07:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?