Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
XP is just a number
 
PerlMonks  

Re: Perl inheritance

by 2teez (Priest)
on Apr 18, 2014 at 18:45 UTC ( #1082806=note: print w/ replies, xml ) Need Help??


in reply to 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:

my $an = Duck->new; $an->speak;
with the code you presented, does it print out what you want?

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me


Comment on Re: Perl inheritance
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1082806]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (15)
As of 2014-04-18 19:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (471 votes), past polls