Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: creating class base modules

by stephen (Priest)
on Dec 17, 2002 at 15:49 UTC ( #220555=note: print w/ replies, xml ) Need Help??


in reply to creating class base modules

Capital C for Cat. Classes are case sensitive in Perl.

So your code should read:

$mycat = Cat->new();

stephen


Comment on Re: creating class base modules
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2014-09-23 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (241 votes), past polls