> "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
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
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 ",