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( @_ );
    }