homepage Welcome to WebmasterWorld Guest from 50.17.107.233
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
Forum Library, Charter, Moderators: coopster & jatar k & phranque

Perl Server Side CGI Scripting Forum

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved