When you type #perl -V, you are executing the perl binary that the shell finds in your path. Different users have different paths depending on how they log in. This might be causing the strange behavior you are seeing.
The typical locations for the perl executable are /usr/bin and /usr/local/bin. You need to determine what the system is using and what your users are using and either install the proper perl binary in that system directory or symlink from /usr/bin/perl or /usr/local/bin/perl to the perl binary you want them to use.
If you want to keep both versions of perl on the system, install the new perl wherever you want (follow the suggestions above). Once you verify that it is working, just change the symlink /usr/bin/perl (or /usr/local/bin/perl) to point to the new perl binary. If something breaks, you can just switch the symlink back to the old version.
If you have a perl in several places, as it appears you do, it will save you some headaches to point them all at one actual binary. Otherwise, you'll need to maintain multiple versions of perl on your system and that can be painful.
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.