On Thu, Jan 22, 2004 at 12:43:07PM -0800, Edward S. Peschko wrote:
> just curious, but does Module::ScanDeps handle the form of require 
> (when scanning):
> 
> eval('require Some::Module');

It does.  You can try it our by yourself using "scandeps.pl -e".

> Unfortunately, if you don't do this form, you get warnings if the module
> is not installed, which is exactly why I'm wrapping it around an 
> eval in the first place..

In that case I recommend:

    if (eval { require Some::Module; 1 }) { ... }

Thanks,
/Autrijus/

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to