Re: AW: perldoc perlboot

2009-06-23 Thread Randal L. Schwartz
Thomas == Thomas Bätzler t.baetz...@bringe.com 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

AW: perldoc perlboot

2009-06-18 Thread Thomas Bätzler
Dave Tang d.t...@imb.uq.edu.au 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 { my $class = shift;