Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Module mechanics questionby TomDLux (Vicar) |
on Aug 15, 2011 at 15:17 UTC ( [id://920311]=note: print w/replies, xml ) | Need Help?? |
The reason you differentiate 'foo' and 'bar' into separate modules is because they do different things. That creates a possibility that either 'foo' or 'bar' will be re-used in separate programs. Therefore you should have use Modern::Perl in each file, so they will be modern even if used separately from each other. After all, you used to tolerate two standard lines in each module to get 'warnings' and 'strict'; now one line in each module gets you those and more. As Occam said: Entia non sunt multiplicanda praeter necessitatem.
In Section
Seekers of Perl Wisdom
|
|