Think about Loose Coupling | |
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?? |
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 ...
In Section
Seekers of Perl Wisdom
|
|