Since when does Perl just ignore things? (: It gets parsed as "5.6" . "0". Yes, it happens to produce the somewhat correct result of telling you that you need to use something like version "5.60", which could certainly be confusing. Sorry, I don't have 5.005 handy to get the exact message and 5.004 doesn't support the "use VERSION" (nor "require VERSION") syntax.

I also think it is important to make people aware that they need to use "old-style" version numbers in the one part of their code that is only meant to be useful in old versions of Perl. The very similar "use v5.6.0;" is going to produce an even less obvious error message.

But I also realize that it is more important to put the line in than it is to get it exactly right. At least having an error message that points to that particular line will be more helpful than the other likely failure modes. (Besides, just as far back as 5.004, there is no great way to automatically tell the user that they need to upgrade.)

        - tye (but my friends call me "Tye")

In reply to (tye)Re2: win32 shebang by tye
in thread win32 shebang by softworkz

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.