Welcome to WebmasterWorld Guest from 188.8.131.52 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
LWP not installed but use LWP no problem LWP is not installed but use LWP in my script, no problem showed hhheng msg:4198420 10:08 am on Sep 8, 2010 (gmt 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?
janharders msg:4198448 10:48 am on Sep 8, 2010 (gmt 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. phranque msg:4198501 1:56 pm on Sep 8, 2010 (gmt 0)
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"'