and a few months later: our @EXPORT ... Are you sure that you, even if you're already a veteran, will never make this mistake?

comments next to a space separated list of barewords?

Yes, I am 100% sure I will never make this mistake

the same as I am sure I will never type "#oops," and not want the "#" and "," as part of the string, and then come back 20 years later and type "# oh yeah , yeah yeah yeah " and expect to get a list instead of a string

but even if I made the mistake, Exporter whose job it is to handle @EXPORT, would catch this the first time the module was used, like when the tests were run, and die  Can't export symbol: # at junk.pl  line 21

But hey, documenting design indecision in comments? That doesn't belong in comments, it belongs in official documentation, so I'm more than 100% sure, i'm 200% sure :D

Does the programmer make a typo or does he really mean setting $Foo::bar? When something is (indeed) a warning, there's always the possibility that the warning is incorrect in that it does not align with what the user means.

congratulations, , even I won't argue that one doesn't belong, but only because its exceptional

Solution to that one isn't disable warnings lexically its  $double::up = $double::up = "for silence";

Anyway , haukex was faster to perlcritic policy, but I would have used xpaths instead

perlcritic is where this type of extra help belongs , warnings is all full up


In reply to Re^5: "Useless use of a constant" in grep block? by Anonymous Monk
in thread "Useless use of a constant" in grep block? by perlancar

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.