Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by tobyink (Abbot)
on Feb 18, 2012 at 10:56 UTC ( #954736=note: print w/ replies, xml ) Need Help??


in reply to On creating hash whose keys aren't case-sensitive

Why not use HTTP::Headers? It's got all the init_header, push_header, remove_header stuff already done.

You may just need to write a small subclass to add a $header_ref->print_headers method which prints out headers in a format suitable for CGI.


Comment on Re: On creating hash whose keys aren't case-sensitive
Download Code
Re^2: On creating hash whose keys aren't case-sensitive
by anazawa (Beadle) on Feb 18, 2012 at 15:33 UTC
    I welcome your suggestion. Plack::Util::headers is maybe inspired by HTTP::Headers. Maybe not. I assumed that I might not modify the main script. In addition, I love CGI.pm :)
Re^2: On creating hash whose keys aren't case-sensitive
by Anonymous Monk on Sep 17, 2012 at 15:57 UTC

    Has anyone written this subclass or method? This would be VERY helpful as I want to use REST::Client which requires a hashref of the headers.

    I wish HTTP::Headers had this as a built-in!!

    Thanks in advance!!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://954736]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2014-07-23 22:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (154 votes), past polls