I've been using perl on my home server for several months using this as the shebang line:
!#/usr/bin/perl
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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.