If you do not have perlbrew installed then this is a good time to install it. It is really simple to install and even simpler to tell it to fetch a perl you want, compile it (itself, not you) and switch to using it.

In this way you leave system perl alone. There are a lot of system processes which depend on perl and possibly specific perl version. If you upgrade a package because a user needs it, then that system process can break. If you upgrade as root you override already existing versions. If you upgrade/install as user in your local dirs then the probability of damage is much less but you then depending on @INC and the paths order, you get this "unexplained" behaviour.

The benefits of perlbrew (or any other similar "alternatives" system) are obvious and the procedure is painless, as it is the learning curve (none basically).

If you must debug this issue, then try to get more information:

perl -MXML::Parser::Expat -e 'print qq/success/'

perl -MXML::Twig -e 'print qq/success/'

perl -e 'print qq/@INC/'

which perl

which cpanm

which cpan

and finally find any Expat installations (may take some time):

find / -type f -name 'Expat.so'

In reply to Re: Fedora 29 upgrade by bliako
in thread Fedora 29 upgrade by JRBJhawk

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.