What you suggest is a bad standard as it requires a waste of time to determine the supported version of Perl when that is of no consequence.

I'd like to think a decent Perl 5 programmer has some idea of the version of the language to which he or she programs. If you can only deploy to 5.008, write use 5.008; at the start of all of your programs and no one will be tempted to use defined-or or state or given/when, whereas if you want to use any of those features, you'd better specify the language version.

Let's stop pretending there aren't mildly incompatible versions of Perl 5 The Language. feature has taken away that fiction.


In reply to Re^8: Writing a better Modern::Perl by chromatic
in thread Writing a better Modern::Perl by EvanCarroll

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.