Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k & phranque

Message Too Old, No Replies

LWP not installed but use LWP no problem

LWP is not installed but use LWP in my script, no problem showed



10:08 am on Sep 8, 2010 (gmt 0)

5+ Year Member

I'm using LWP module in one of my script, and
use LWP 5.64;
to inclue it. I tested the script and LWP module showed no problem.

But today when I checked the system installed modules and found that LWP isn't there, and I never tried to install this module. How can it work?

My web hosting company is hostmonster, and it said the perl modules are directly from the CPAN repositary.

Can we use a module without installing it?


10:48 am on Sep 8, 2010 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member

"installing" usually means "putting it somewhere where perl can find it".
If LWP.pm sits in the directory of your script or in any directory that's named in @INC, it'll work just find.
How did you check the "installed modules"? maybe the check didn't search all locations.


1:56 pm on Sep 8, 2010 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

try the instmodsh [perldoc.perl.org] command to see which modules are installed.

you can use the following command to see which libraries are in @INC:

perl -e 'print "@INC"'

Featured Threads

Hot Threads This Week

Hot Threads This Month