Welcome to the Monastery | |
PerlMonks |
Re: On creating hash whose keys aren't case-sensitiveby davido (Cardinal) |
on Feb 18, 2012 at 09:54 UTC ( [id://954730]=note: print w/replies, xml ) | Need Help?? |
I haven't personally used the module, but it might be an opportunity to try out Tie::Hash::Regex. Your content-length key could match against a regex like this, for example:
From looking over the synopsis, the lookup would be as follows:
Realistically though, it's probably better to leave hash behavior alone, and just normalize your input before trying to do key lookups. Dave
In Section
Seekers of Perl Wisdom
|
|