|Problems? Is your data what you think it is?|
Re: What are the advantages or disadvantages of "require" over "use"by kcott (Canon)
|on Apr 18, 2014 at 07:19 UTC||Need Help??|
In the use documentation, you'll see:
So, if you had to use require, you could still get the compile time checks with:
However, reading a bit further down the use documentation, you'll see that this is exactly equivalent to
So, unless you're unable to specify a bareword for Module (see this post of mine from a few days ago for an example), or you have a particular need to load Module at runtime (e.g. your point #4 scenario [although see below]), there's really no reason not to use use.
Finally, regarding the points you made: