Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: About inheritence ? and Autoload ?

by pajout (Curate)
on Nov 25, 2009 at 08:33 UTC ( #809292=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Animal; #parent class, in file lib/Animal.pm 
    sub new {
    ...
      $self->output_sound("khro");
    }
    1;
    
  2. or download this
    use Animal::Dog::Sheepdog;
    my $helper = Animal::Dog::Sheepdog->new();
    ...
    #Once you have an instance, you can call it's methods by this way:
    
    $helper->sound;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2014-09-16 02:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (155 votes), past polls