I'd much rather authors didn't specify use 5.010; when they've used say or //.

Why? Because if they omit it, I get a useful error message telling what is wrong and where, when I try to run it on an earlier version..

That encourages me to go look at it. And it it is as trivial as replacing say ...; with print ..., "\n", then I can do so, and hey presto; I'm good to go.

Whereas, if if the compiler dies with:

Perl v5.X.0 required--this is only v5.Y.yy, stopped. BEGIN failed--compilation aborted.

I'm quite likely to assume the worst and abandon the attempt.

Of course, you're going to say that it's trivial to comment it out and see the error messages and decide whether to correct the problem.

But if it wasn't there in the &^^%$£ first place, I wouldn't have to comment it out. Nor make the decision to investigate further!

Any errors that will arise as a result of the use 'features' from a later version, will manifest themselves very readily. If not the first time you run the code, then at least during your ever-so-thorough pre-production testing.

So, the only people "protected" by requiring a particular version of perl, are those people dumb enough to download a script or module, and put it straight into production without testing it, or at least running it once, first.

Surely to dog, they are the very last people we should be protecting--against themselves--when it is to the detriment of the rest of the community.

That's as bad as the system the means that all the world has to suffer tea & coffee made with non-boiling water (95°), because some dumb-ass went to a drive-thru and placed a cup of coffee between their legs, drove off and scalded their crotch.

This is yet another of those dumb ideas that sounds cool--until you apply the merest modicum of £$%&^*&(* logic to it.

Just as bad as test tools that hide the real errors and locations and replace them with never-mind-the-quality-feel-width bean counting statistics.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy

In reply to Re^9: Writing a better Modern::Perl by BrowserUk
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.