|
|
| "be consistent" | |
| PerlMonks |
Re: Are many use statements a code smell?by demerphq (Chancellor) |
| on Jun 12, 2005 at 09:47 UTC ( [id://465953]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
For those not familiar with the title phrase: CodeSmell Although IMO "Are many use statements a code smell?" might be a better title. And to add an answer, usually when ive had to do this i usually end up putting all the use statements in the root class. So the client says
And all the subclasses are pulled into memory. But i dont have startup time constraints. Its fine for my code to chug a little on startup as it usually runs for hours anyway. YMMV.
--- $world=~s/war/peace/g
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||