good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: 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 reply to Re: Re: Reducing Perl OO boilerplate
by exussum0
|
|