If I do a perl -v at the shell prompt it still gives me version 5.6. First off how can I have the system recognize perl 5.10 as being the active version of perl (if I wanted or needed to)?
When you ask a shell to run something, if you don't specify its location, the shell tries to find it by searching the list of directories in the $PATH shell variable. It runs the first thing it finds that matches what you asked. If you type /opt/.../perl -v at the command line, you should get the answer you are looking for (replace the ellipsis with the rest of the path to the new Perl binary).

In a script you can get the same effect by using "/opt/.../perl" on the #! line (rather than /usr/bin/perl).

It is generally a bad idea to modify system paths to interpose your newer Perl before the default Perl. This has the potential to break important parts of the operating system that blindly assume the presence of the Perl that came with the operating system. It is also possible to create problems if you modify your personal path, but these would likely be easier to fix.


In reply to Re: Installs on Red Hat Linux Server by eye
in thread Installs on Red Hat Linux Server by rpike

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.