in reply to Where and when you should place 'use module;'?
A use Module will cause the module to be loaded when the program starts, regardless of where in the script you put it (it gets run in a BEGIN block).
I personally think it makes more sense to put all your "use" statements at the start of your script, that way you can easily see what your dependencies are - no nasty surprises.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Where and when you should place 'use module;'?
by davidrw (Prior) on Oct 12, 2005 at 12:59 UTC |