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.