|Problems? Is your data what you think it is?|
Perl Version Mysteryby awohld (Hermit)
|on Oct 21, 2005 at 05:39 UTC||Need Help??|
awohld has asked for the
wisdom of the Perl Monks concerning the following question:
I've been using perl on my home server for several months using this as the shebang line:
I've installed all kinds of things using CPAN without a problem. Then today I run CPAN and it tells me that a ton of environment variables are missing and I need to reconfigure it. So I do that and install HTML::TokeParser::Simple.
Then I try to run a program using HTML::TokeParser::Simple and it errors out saying it can't find it, I'm still using !#/usr/bin/perl
So I check out "whereis perl" and now I have my standard directory that I've been using for months /usr/bin/perl (v 5.8.6)and a new directory I haven't noticed before, where HTML::TokeParser::Simple is installed /usr/local/bin/perl (v 5.8.7)
The Perl 5.8.7 directory has a creation date of 10/7/2005 so it looks like a new perl has been installed. Is there a way to revert CPAN to use the old 5.8.6 perl in the /usr/bin/perl directory? How does perl update itself, this may have happened when I updated Fedora with Yum.
Update:I figured it out, I must have installed a new version of perl. The cpan I'm now running is /usr/local/bin/cpan, my old cpan is at /usr/bin/cpan. I can run the old cpan and everything works fine. I need to now find out about upgrading Perl.