As you browse over the perl delta documents that ikegami posted you will see occasional mention (v5.8.0 for example) of Binary Incompatibility. From the v5.8.0 delta POD:

Perl 5.8 is not binary compatible with earlier releases of Perl.

You have to recompile your XS modules.

(Pure Perl modules should continue to work.)

There is a nice blog post by our fellow monk, chromatic: Perl 5 Version Numbers and Binary Compatibility. It provides more detail, and discusses that it is a goal of P5P to maintain binary compatibility between release families. So 5.8.0 should be binary compatible with 5.8.9, but there is no guarantee either way (aside from what may be documented in the perl delta docs) between 5.8.9 and 5.10.0. When in doubt, consult the POD. And when still in doubt, run the distribution tests of whatever modules you are concerned about (those using XS, for example).

When you install a new version of Perl through any of the standard means, the core modules are automatically updated, so you won't have to consider them. But you may need to reinstall the non-core modules that use XS.

If you have concerns you may want to use perlbrew to create a separate installation of the target upgrade version of Perl, and then test your code against it before committing yourself 100%. For that matter, there's really very little reason to ever deal with the system Perl. May as well just install a new perlbrew Perl, and once your test suites have all passed, select that one as the live Perl installation.


Dave


In reply to Re: Major differences in Perl 5 versions by davido
in thread Major differences in Perl 5 versions by Only1KW

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.