good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: case-insensitive hash keysby cyocum (Curate) |
on Aug 21, 2004 at 00:27 UTC ( [id://384740]=note: print w/replies, xml ) | Need Help?? |
I have not thought this through completely, but you could use a tied hash which on STORE used a lowercase function. This would alleviate the need to have a lc() all over the code but it would slow your code down a bit. Again, this is off the top of my head so it might not work.
In Section
Seekers of Perl Wisdom
|
|