Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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.

Replies are listed 'Best First'.
Re^2: On creating hash whose keys aren't case-sensitive
by anazawa (Scribe) 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 lurking in the Monastery: (5)
As of 2016-09-27 05:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (494 votes). Check out past polls.