Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Simple inheritance question

by nvivek (Vicar)
on Apr 24, 2010 at 09:34 UTC ( #836665=note: print w/ replies, xml ) Need Help??


in reply to Simple inheritance question

In the eg subroutine,you have to call the test subroutine by in the following two ways.

$_[0]->test(pop); #Here $_[0] contains the class name. #first interpreter will check test is defined in Two or not. #If it isn't defined,then it will check the method in One package beca +use of use base function One::test(pop); #calling the test method using the class name One beca +use test isn't in Two's package workspace


Comment on Re: Simple inheritance question
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2014-12-29 10:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (186 votes), past polls