It's not always a matter of being afraid to upgrade Perl. For example, Solaris 8 came with Perl 5.6 or 5.005. Perl wasn't used on that machine for a big program but for convenient small utility programs that created human readable diffs. Having modules needlessly require higher versions of Perl would have lessened the utility of Perl on that platform by much.

I am not against using features when they are useful. I almost always use three-arg open() and qr// whenever they are needed. But especially our is a useless feature that introduces a 5.6 dependency which is completely unneeded - use vars qw() achieves (almost) the same, except that you have to refer to a global variable by its global name from outside the package, which I consider more correct.

For example, one of my modules, parent works with Perl down to 5.004, and Maddingue helped me weed out the compatibility problems that only existed in the test suite. Often, little fixes restore backwards compatibility and if you want your code to be used, thinking of backwards compatibility makes it easier for your users to actually use your code in their environment.


In reply to Re: The need and the price of running on old versions of Perl by Corion
in thread The need and the price of running on old versions of Perl by szabgab

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.