If "upgrade" means: Install a new version from CPAN, then you should be safe. If a core module is available on CPAN, then this is exactly why: so that you can upgrade it without upgrading Perl.
The details vary between different platforms, but there are safeguards in place:
- Core modules come with a decent set of tests. Run them, as one usually does when installing from CPAN. If one of the test fails, then the module refuses to install - no harm done.
- Modules installed from CPAN end up in other directories (with higher priorities in @INC) than those coming with the core. So you don't overwrite existing files. Just keep track where the files go so that you can backpedal if desired.
Mostly, this also applies to XS modules. If you install them from CPAN, they will be compiled and tested against your installed version of Perl, and end up in a directory specific for your version, but still different from the directory where you got it with Perl. The rollback is a bit more complex because more than one directory needs to be "cleaned".
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.