CPAN thinks I am using an older Perl version

F

Fredrik Jørgensen

i use Perl version 5.8.7, but CPAN seems to think i am using 5.8.5, and
stores all new modules under 5.8.5 directories. and then my perl can't
find the modules I install.

how do I solve this problem?

best,
Fredrik (newbie)
 
U

usenet

Fredrik said:
i use Perl version 5.8.7, but CPAN seems to think i am using 5.8.5

(assuming this is some sort of UN*X box)

It sounds like you may have two versions of Perl on your system
(entirely possible). You probably begin your Perl scripts with a
shebang line like this:

#!/usr/bin/perl

but you probably invoke CPAN with something like this:

perl -MCPAN -e shell

It's possible that bareword "perl" is somewhere higher (and different)
in your path than shebang "perl". Type "which perl" at a shell and see
if it shows you the path you expect.

If you invoke CPAN with the fully-qualified name of perl which matches
the fully qualified name in your shebang line, this should not happen;
ie:
/usr/bin/perl -MCPAN -e shell
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,183
Messages
2,570,969
Members
47,524
Latest member
ecomwebdesign

Latest Threads

Top