Subject: | ProtectPrivateSubs allow POSIX::_SC_CLK_TCK() and friends |
Date: | Sat, 23 Aug 2008 09:01:18 +1000 |
To: | bug-perl-critic [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
In ProtectPrivateSubs it'd be good if the various standard POSIX module
conf constants like _PC_LINK_MAX, _POSIX_ARG_MAX and _SC_CLK_TCK were
not considered private, so you can use them unimported like
require POSIX;
print POSIX::sysconf(POSIX::_SC_CLK_TCK()),"\n";
Hopefully there's not too many "_" exceptions like this to make. The
only other I know of would be Encode::_utf8_on() and _utf8_off(), which
I'm not 100% sure if you're really meant to use, or unless you know what
you're doing.