Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: javascript.pm ??

by vek (Prior)
on Jan 03, 2002 at 09:47 UTC ( [id://135924] : note . print w/replies, xml ) Need Help??


in reply to javascript.pm ??

This typically means that you don't have the URI::javascript module installed on that box - or have it installed in a "non-standard" location. You must have this line of code in your prog:
use URI::javacript;
Perl will search through it's list of library directories (contained in the @INC array) to try and locate that module. If it can't find it (as is the case here) then you'll get an error.

I'm assuming this is a module you wrote yourself as I could not find it on CPAN. That being the case, have you installed it in a directory other than those specified in @INC? If you have, you'll need to add that directory to @INC, here's one possible way to do that:
use lib '/path-to/your-module'; use URI::javascript;
Type perl -V to display the library directories perl will search to find installed modules.