Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: goto superclass method

by Aristotle (Chancellor)
on Dec 22, 2004 at 20:58 UTC ( #416903=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    sub Bar::method { goto $_[ 0 ]->SUPER::can( 'method' ); }
    
    print Bar->method(), "\n";
    
  2. or download this
    sub SUPER::can {
        my $caller = ( caller 1 )[ 3 ];
    ...
        local *$caller;
        return UNIVERSAL::can( @_ );
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2019-03-22 07:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How do you Carpe diem?





    Results (111 votes). Check out past polls.

    Notices?