Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Can't find module error

by LAI (Hermit)
on Apr 15, 2003 at 18:49 UTC ( [id://250643]=note: print w/replies, xml ) Need Help??


in reply to Can't find module error

The following:

use lib 'c:\h\COTS\Perl\lib\';

Should do what you want. This is the preferred interface to @INC, rather than modifying it directly.

Update: It occurred to me that your entire perl distribution might be in C:\h\COTS. If so, you likely want to modify your installation of perl to reflect that. I'm not clear on where stuff is in Windows, but you likely have a Perl.ini or something like that, where the default @INC is defined. Append to (or replace) the directories in the .ini with your path, and it should be good.

That is, assuming the machine is your own and doing the above wouldn't break anyone else's perl :)

Update: Silly double-quotes. They're single now. Thanks, chromatic!

LAI

__END__

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://250643]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-03-28 14:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found