Re: loading Perl modules in mid program

by "Shaun L. Sides" <arch(at)abts.net>

 Date:  Sat, 10 Jun 2000 07:25:30 -0400
 To:  hwg-languages(at)hwg.org
 In-Reply-To:  yahoo
  todo: View Thread, Original
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 9 Jun 2000, at 15:02, David Mintz wrote:

> Is there a way to bring in a module only when you need it rather
> than loading it at the top of the program? In the interest of
> efficiency I'm thinking I'd like to save the expense of _use_ing
> modules that I'm not going to use. 

I don't think there is, but you can (usually) specify only certain 
parts of the module:

use CGI ':standard';

for example.

As an alternative, you could compartmentalize the program, 
splitting it up into multiple scripts and have them call each other 
back and forth, but that sounds really messy and you'd likely not 
be pleased with the performance of it.

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.2 -- QDPGP 2.61a
Comment: http://community.wow.net/grt/qdpgp.html

iQCVAwUBOUIlqSEw9uEAOtM/AQK58gP+IF3yZ5gUbPTVUXpw2pgIi4C91kSaWimj
naUvfz+cM9MKxkBfg8QQ3XWmSy8SlAZVobmyUbFOACIw7IeyQTwHf3yYgcopa8hl
9xMJPNCBtd/Xh7LOivmca0DiobQurZksp5dtuhwtho0mS16X6HZDyU+f71zWBPby
DmsfU+c0Sbg=
=uZ4X
-----END PGP SIGNATURE-----

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.