XP is just a number | |
PerlMonks |
Re: Re: Reducing Perl OO boilerplateby exussum0 (Vicar) |
on Feb 18, 2004 at 03:24 UTC ( [id://329826]=note: print w/replies, xml ) | Need Help?? |
I'll cut off the people who will tell you, don't use new, since if you have a function called new in your main:: space, it'll break your program.
BUT, tell me.. you have a function that's called add, it adds two things, right? You have a function called, parseString, it parses strings, right? Why would you have a main:: funciton called new? New what? New time of day? New cheese? A function called new is badly named. :P Update: See this node for more details on ->new vs new and someone actually having the problem. Play that funky music white boy..
In Section
Seekers of Perl Wisdom
|
|