in reply to Re: On creating hash whose keys aren't case-sensitive
in thread On creating hash whose keys aren't case-sensitive
Thanks for your suggestion.
Although I didn't understand why your code worked so, I confirmed your sub worked in an expected way.
I didn't consider whether to normalize users' inputs.
In my case, "be strict with your output" points out the following:
"(be) liberal with your input" does the following:# Header.pm sub set_header { $header_ref->{ $key } = $value; }
Your comment meant a lot to me.# plugins/foo set_header( $main::header_ref, '-status' => '304 Not Modified' );
In Section
Seekers of Perl Wisdom