Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id:
75765
Status:
open
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
EDAVIS [...] cpan.org
Cc:
AdminCc:

BugTracker
Severity:
Wishlist
Broken in:
1.117
Fixed in:
(no value)



Subject: Suggested policy: fold cases using fc
This is interesting reading: http://www.effectiveperlprogramming.com/blog/1507 Doing a case-insensitive comparison as lc($foo) eq lc($bar) is not correct, and nor is using 'uc'. Instead perl 5.16 introduces 'fc', the fold-case operator, which can be used: fc($foo) eq fc($bar) This suggests that when perl 5.16 is out, a new policy can spot lc() or uc() being used for string comparisons and suggest using fc() instead.
Subject: Re: [rt.cpan.org #75765] Suggested policy: fold cases using fc
Date: Wed, 14 Mar 2012 08:17:02 -0500
To: bug-Perl-Critic@rt.cpan.org
From: Elliot Shank <perl@galumph.com>
On 3/14/12 6:13 AM, EDAVIS via RT wrote:
Show quoted text
> This suggests that when perl 5.16 is out, a new policy can spot lc() or > uc() being used for string comparisons and suggest using fc() instead.
Yeah, but it would have to turn itself off if the 'fc' feature wasn't enabled.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.