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!!