CPAN does track the VERSION of each .pm file, and it will not install a .pm file if it thinks the one already installed is newer, regardless what the version number is of the package. (In fact, as far as I can tell, there's no relationship between the version of the package (the number in the tar file), and the versions of the .pm files).

As far as CPAN is concerned, all the .pm files without a VERSION assignment in the file itself do not have a VERSION. It'll list them as undef. Whether it will then actually replace an already installed file with a newer one, I do not know. For me, CPAN usually doesn't do what I mean, so I wouldn't dare take the risk.

Abigail


In reply to Re: variable "inheritance"; viral $VERSION by Abigail-II
in thread variable "inheritance"; viral $VERSION by amackey

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.