Calling modules in NT.
Is it the same as in UNIX? Just:
use module;
If so, then if I get an error like this (just part of error):
Can't locate module.pm in @INC
does that mean that that version of Perl support the requested module?
Is it the same as in UNIX? Just:
use module;
If so, then if I get an error like this (just part of error):
Can't locate module.pm in @INC
does that mean that that version of Perl support the requested module?
japhy posted this at 02:04 — 15th December 2000.
They have: 161 posts
Joined: Dec 1999
If Perl complains that it can't find a module, that means one of two things
[=1]
[*] the module is not in a directory where Perl normally looks for modules
[/=1]
If it's the first case, you need to download and install the module. If it's the second case, then, assuming Foo.pm is in C:\my_modules\, then you need to do
use lib "C:/my_modules";
use Foo;
for Perl to be able to find the module.[/]
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.