I've seen something else on this site about eval'ing the use Xxxx, is that a real solution? ala:
if ($needFancyCGI) { eval 'use CGI qw(:all)'; } else eval 'use CGI qw(:cgi)'; }
I've had the privilege of always having the memory and CPU at levels where conditional includes were a non-issue (thankyouthankyouthankyou mod_perl) so I've never run into this need.
--
$you = new YOU;
honk() if $you->love(perl)
In reply to RE: loading a module only if you need it
by extremely
in thread loading a module only if you need it
by skazat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |