Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

•Re^2: Create a constructor named the same as your package name!

by merlyn (Sage)
on Jul 01, 2004 at 14:15 UTC ( [id://371088]=note: print w/replies, xml ) Need Help??


in reply to Re: Create a constructor named the same as your package name!
in thread Create a constructor named the same as your package name!

It's arguably your namespace, because if someone else were to create that subroutine name, it would mess up all of your class methods.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on •Re^2: Create a constructor named the same as your package name!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2024-04-18 12:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found