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)

New User

5+ Year Member

joined:Sept 14, 2006
votes: 0

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 Sept 8, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:May 31, 2008
votes: 0

"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 Sept 8, 2010 (gmt 0)


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

joined:Aug 10, 2004
votes: 8

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"'