What is the difference between doing use My::Module and require My::Module?
use My::Module
require My::Module
From perldoc -q "difference between require and use":
use Module is like require Module, except that use 4.1: loads the module at compile time, not run-time. 4.2: imports symbols and semantics from that package to the current one.
use Module is like require Module, except that use
use Module
require Module
use
4.1: loads the module at compile time, not run-time.
4.2: imports symbols and semantics from that package to the current one.