That way, your script works regardless of whether the module is moved about on the filesystem or your script is used on another machine.use Module VERSION # e.g. use Foo::Bar 5.01; # <- just v5.01 please, TYVM # or better still eval "use Foo::Bar 5.01" or do { use Foo::Bar } # fallback incase the 'required' version isnt available
In reply to Re: BEGIN and compile-time
by Firefly258
in thread BEGIN and compile-time
by jbert
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |