|
|
| "be consistent" | |
| PerlMonks |
Re^4: Create a constructor named the same as your package name!by antirice (Priest) |
| on Jul 03, 2004 at 06:16 UTC ( #371552=note: print w/ replies, xml ) | Need Help?? |
|
There is one way that you can overcome it. It's pretty bad, though. :/
Yeah. Not very pretty, I know. Also, it breaks if no parameters is an illegal option (i.e. your constructor returns undef or dies). This would come into play for calls such as Example::Module->print_it. Of course in that case you may as well just return "Example::Module" as the original code had. antirice
In Section
Snippets Section
|
|
||||||||||||||||||||