James Edward Gray II wrote: >On Feb 7, 2004, at 10:02 AM, Jeff 'japhy' Pinyan wrote: > >> On Feb 7, Jan Eden said: >> >>> { package Mouse >>> @ISA = qw{Animal}; >>> ... >>> sub speak { >>> my $class = shift; >>> ... >>> Animal::speak($class); >>> ... >>> } >>> } >> >> I was about to ask why it's written this way, but upon checking the >> source, I see that this is the way the first example on overriding a >> method looks. > >I was going to ask this too. I'm glad I finished reading the email. > >I'm not familiar with the book though, so I will ask this? Does it >eventually go on to introduce SUPER::? That's what I would prefer here >and I just want to make sure you're aware of the option.
Yes, SUPER:: is introduced just two paragraphs later. I read on, but the uncertainty about $class->Animal::speak kept bugging me. ;) - Jan -- These are my principles and if you don't like them... well, I have others. - Groucho Marx -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>