Calling modules in NT.

They have: 62 posts

Joined: May 2000

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?

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 installed on your machine, or
  • [*] 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.