Skip Menu |

This queue is for tickets about the Perl-Critic-Dynamic CPAN distribution.

Report information
The Basics
Id: 36992
Status: open
Priority: 0/
Queue: Perl-Critic-Dynamic

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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"; }
Thanks for pointing this out. I've just started tinkering with this Distro again. I'll see if I can figure out what is going on here. -- Jeffrey Thalhammer Imaginative Software Systems www.imaginative-software.com