From what I gathered it's supposed to print "I am a duck" but it does nothing at all.
And if you write this:
with the code you presented, does it print out what you want?my $an = Duck->new; $an->speak;
In reply to Re: Perl inheritance
by 2teez
in thread [Resolved]Perl inheritance
by ivanovic3001
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |