Is it a good practice to do this: ?if (Option{blah} enabled) { use Win32::Blah; }
No. Because it has no effect at all. use statements are all executed at compile time so it is impossible to use modules conditionally.
You can, however, use require to do something very similar.
--
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
In reply to Re: Modules and memory use
by davorg
in thread Modules and memory use
by randomblue
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |