Yes, using sudo apt-get install libdatetime-perl seems a good idea, especially for a basic module such as DateTime, which seems a useful thing to have around. Not so sure I want to clutter /usr with every Cpan Module I fancy trying out and might never use again. So I did that, and then got:

cpan[1]> m DateTime CPAN: Storable loaded ok (v2.41) Reading '/usr/local/CPAN/Metadata' Database was generated on Tue, 16 Jun 2015 21:53:20 GMT Module id = DateTime CPAN_USERID DROLSKY (Dave Rolsky <autarch@urth.org>) CPAN_VERSION 1.19 CPAN_FILE D/DR/DROLSKY/DateTime-1.19.tar.gz UPLOAD_DATE 2015-05-31 MANPAGE DateTime - A date and time object INST_FILE /usr/lib/perl5/DateTime.pm INST_VERSION 1.06
So it had actually installed v1.06 (presumably the latest Ubuntu had got around to) although it knew that a later v1.19 existed.

Fortunately, my application did not care about that version, but promptly declared that what it really wanted was DateTime/Format/Mail.pm, which then downloaded via Cpan; my application then ran, and hit a bug which I shall now have to sort out.


In reply to Re^2: Upgrading XS module to later version by clerew
in thread Upgrading XS module to later version by clerew

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.