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

Re: Inheritance question

by pc88mxer (Vicar)
on Jul 11, 2008 at 17:36 UTC ( [id://697038]=note: print w/replies, xml ) Need Help??


in reply to Inheritance question

Move your calls to new to the end of the file.

Or, replace: @ISA = qw/A/ with: use base 'A'.

The problem is that @ISA = qw/A/ is not being run at compile time, and so package B isn't completely set up before you call B->new().

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-28 21:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found