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
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;