There's more than one way to do things | |
PerlMonks |
Re^3: Can we make hash key check in 'if' condition case insensitive?by syphilis (Archbishop) |
on Feb 09, 2018 at 01:02 UTC ( [id://1208769]=note: print w/replies, xml ) | Need Help?? |
fc should be used for case-insensitive comparisons, not lc Do you have a usage example for "fc" that actually works ? I certainly don't. On Win32 perls 5.24.0, 5.26.0, 5.27.8 and Ubuntu perl 5.26.0 (all of which provide documentation for the fc function), I tried the following script: In every case it simply output:
Update Aah .. you have to use feature 'fc'; to enable it. (Clearly stated at the very end of the documentation.) I personally would not recommend anything that requires feature to be enabled. Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|