"be consistent" | |
PerlMonks |
Re: Using a module more than onceby davidrw (Prior) |
on Aug 02, 2005 at 15:31 UTC ( [id://480232]=note: print w/replies, xml ) | Need Help?? |
Also, will any problems (or benefits) arise from developers adding "use" statements for the same CPAN modules in their own programs?No, it's fine -- they only get included once. perldoc -f use says that use Module LIST is exactly equivalent to BEGIN { require Module; import Module LIST; } and perldoc -f require says that 'the file will not be included twice under the same specified name'.
In Section
Seekers of Perl Wisdom
|
|