My hunch (without looking too deeply) is that POSIX is doing something that whichever module implements the exports policy for Perl::Critic doesn't recognize. It looks to be dynamically building its export list at compile/use time so the critic module isn't going to find an explicit @EXPORT or @EXPORT_OK package variable.

And in general, Perl::Critic is going to set you on the right path most of the time. Even the cases where you don't agree with its default suggestions or comments it's probably something that you should at least be aware of and have made a conscious decision about (then you can ## no critic it and hush it up).

Edit: Actually I can't reproduce either with same test source. Perl::Critic 1.140, POSIX 1.97, perl 5.34.0, OS X 10.15.7.

The cake is a lie.
The cake is a lie.
The cake is a lie.


In reply to Re: Perl::Critic and the POSIX module. by Fletch
in thread Perl::Critic and the POSIX module. by GWHAYWOOD

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.