Subject: | utf8::is_utf8 |
Date: | Sun, 22 Jun 2008 08:59:29 +1000 |
To: | bug-Perl-Critic-Dynamic [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
With perl-critic-dynamic 0.04 and the debian perl 5.10.0 the program
below put through
perlcritic --single-policy=ValidateAgainstSymbolTable utf8.pl
reports
Subroutine "utf8::is_utf8" does not appear to be defined at line 4, column 5. Perhaps you forgot to load "utf8". (Severity: 4)
whereas I think that func is always loaded, and that you're specifically
not meant to "use utf8" before calling it.
use strict;
use warnings;
if (utf8::is_utf8('abc')) {
print "yes\n";
} else {
print "no\n";
}