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


in reply to Re^3: Difference between 'use' and 'require'
in thread Difference between 'use' and 'require'

No, you can require+import modules any time you like, even at runtime. use is at compile time.

The reason the latter matters is because modules can change the way the rest of the source is compiled, think of integer, prototyped imported subs, or even plain subs, and constants.

And that will not work at runtime, because it's too late.

  • Comment on Re^4: Difference between 'use' and 'require'