cormanaz has asked for the wisdom of the Perl Monks concerning the following question:
When I run the script it says Can't locate URL/Encode.pm in @INC (you may need to install the URL::Encode module). If I comment-out the second line it throws the same error for Date::Manip. I run cpan -l and there they are!use feature ':5.10'; use URL::Encode qw(url_encode); use Storable qw(nstore retrieve); use Date::Manip; use LWP::UserAgent; use Math::Round qw(round); use JSON::XS;
It's not that the env variable $PATH got screwed up, because if I comment-out Date::Manip too it finds the other mods. This has me scratching my head. What could explain it?
Update
I found that if I run it from the command like so perl program.pl it finds the mods. But if I run it like so program.pl it doesn't. So I'm guessing must be something wrong with the file association to *.pl. I wonder how to fix that.
|
|---|