in reply to [Resolved]Perl inheritance
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl inheritance
by ivanovic3001 (Initiate) on Apr 18, 2014 at 20:57 UTC | |
by locked_user sundialsvc4 (Abbot) on Apr 18, 2014 at 21:44 UTC | |
by AnomalousMonk (Archbishop) on Apr 18, 2014 at 22:43 UTC |