Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Module ( method ) alias ?

by exilepanda (Monk)
on Oct 04, 2012 at 07:04 UTC ( #997194=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package ModB;
    use parent qw'ModA';
    ...
        return $c->SUPER::new ( @_ ) ;    
    }
    1;
    
  2. or download this
    package ModA;
    sub new { return bless {}, shift }
    sub p { print @_ }
    1;
    
  3. or download this
    use ModB;
    my $b = ModB->new();
    $b -> p ( "World!" ) ;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2014-12-28 13:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (181 votes), past polls