homepage Welcome to WebmasterWorld Guest from 54.211.14.159
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
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

5+ Year Member



 
Msg#: 4198418 posted 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

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4198418 posted 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

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



 
Msg#: 4198418 posted 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.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved