Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Can you help me understand this OO notation/issue?

by mr.nick (Chaplain)
on Sep 06, 2013 at 15:08 UTC ( [id://1052725] : note . print w/replies, xml ) Need Help??


in reply to Re: Can you help me understand this OO notation/issue?
in thread Can you help me understand this OO notation/issue?

Now that you mention it, that does seem to be true. I guess the @PARENT::ISA = @ISA is actually creating a namespace called "PARENT" with @ISA in it, then the PARENT::new() call searches that @ISA and finds the Event package, then calls the new. Interesting. That would explain why the Event08 is always being called; it's the last to populate @ISA in PARENT.

Thanks! (I should have noticed this, though ... too much PHP coding).

mr.nick ...

  • Comment on Re^2: Can you help me understand this OO notation/issue?