What operating system and version are you on? Do you use the perl interpreter installed by your OS or did you compile it yourself?

Also, and this might be a stupid question, POSIX::setsid() actually work on your particular installation? I haven't looked into it for more than a few minutes, but it looks like the POSIX module does all kind of weird dynamic stuff on compile time (and probably on runtime as well) depending on your OS. For example, the Makefile.PL is full of stuff like this:

if ($^O ne 'MSWin32' && $^O ne 'freemint') { push @libs, qw(m posix cposix); }

And even the .pm files have some nice stuff like:

strerror  => 'errno => BEGIN { local $!; require locale; locale->import} my $e = $_[0] + 0; local $!; $! = $e; "$!"',

or

if ($^O eq 'MSWin32') { $default_export_tags{winsock_h} = [qw(

The astonishing thing here isn't that perlcritic has a hickup with stuff like that. It's astonishing that perlcritic gets it right more often than not under circumstance that are essentially "the module exports A B and C unless it is a full moon or the wind comes from the northeast, in which case the exports are A D and C and if you change the order of the exports the thing will instantly collapse into a black hole and take your project with it".

perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'

In reply to Re: Perl::Critic and the POSIX module. by cavac
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.