http://qs321.pair.com?node_id=11114029


in reply to Possible redundant use of "use strict" and "use warnings"?

You can remove them. Perl remembers the modules already loaded (%INC) and does not load them again.
Take care to consolidate arguments if the modules use some (not the case here).

Replies are listed 'Best First'.
Re^2: Possible redundant use of "use strict" and "use warnings"?
by haukex (Bishop) on Mar 09, 2020 at 18:22 UTC
    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.