in reply to loading a module only if you need it
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)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: loading a module only if you need it
by merlyn (Sage) on Oct 10, 2000 at 01:35 UTC | |
by extremely (Priest) on Oct 10, 2000 at 01:40 UTC |