Re: AW: perldoc perlboot

2009-06-23 Thread Randal L. Schwartz
> "Thomas" == Thomas Bätzler writes: Thomas> Now $class is 'Dormouse', but the current package is 'Mouse' and the Thomas> explanation from perlboot makes sense: $class->SUPER::speak() invokes Thomas> Animal::speak() and not Mouse::speak(). Exactly, because if it didn't, it'd be an infinite l

AW: perldoc perlboot

2009-06-18 Thread Thomas Bätzler
Dave Tang asked: > I've been going through perldoc perlboot and I have a question about > using the SUPER class. Here's the code in the documentation: > > #!/usr/bin/perl > > use strict; > use warnings; > > { > package Animal; > sub speak { &g

perldoc perlboot

2009-06-18 Thread Dave Tang
Hello, I've been going through perldoc perlboot and I have a question about using the SUPER class. Here's the code in the documentation: #!/usr/bin/perl use strict; use warnings; { package Animal; sub speak { my $class = shift; print "a $class goes ",