Charles K. Clarkson wrote: > Dave Adams <mailto:[EMAIL PROTECTED]> wrote: > > > Does perl allow you to conditionally include a module? > > In general, you can load a module at runtime by using > 'require' and manually running its import() sub routine. > > require Module; > Module::import( 'Import list' );
That should be Module->import(@list); Many (most?) modules do not implement an import() method, but simply rely on the default behavior from Exporter. Another option that can be used at runtime is: eval "use Module(@list)"; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>