Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^2: On creating hash whose keys aren't case-sensitive

by anazawa (Scribe)
on Feb 18, 2012 at 15:20 UTC ( #954758=note: print w/replies, xml ) Need Help??

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:
# sub set_header { $header_ref->{ $key } = $value; }
"(be) liberal with your input" does the following:
# plugins/foo set_header( $main::header_ref, '-status' => '304 Not Modified' );
Your comment meant a lot to me.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://954758]
[atcroft]: Lady_Aleena: So you are shoving the disparate data into a structure and returning the structure, so you can run it through a (probably simpler) routine that displays only?
[Lady_Aleena]: atcroft, that is the goal.
[Lady_Aleena]: atcroft, this is the last of the printing modules I am going to make stop printing, I think.

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2017-05-29 02:33 GMT
Find Nodes?
    Voting Booth?