Perl: the Markov chain saw | |
PerlMonks |
Re^2: Possible redundant use of "use strict" and "use warnings"?by haukex (Archbishop) |
on Mar 09, 2020 at 18:22 UTC ( [id://11114030]=note: print w/replies, xml ) | Need Help?? |
Perl remembers the modules already loaded (%INC) and does not load them again. Yes, but to be nitpicky that's a feature of require - use is equivalent to BEGIN { require Module; Module->import( LIST ); }, meaning that multiple use statements will still cause the packages' ->import method to be called multiple times, which may make a difference if import does some nonstandard things.
In Section
Seekers of Perl Wisdom
|
|