use strict; use warnings; use Insensitive::Hash; my $hash = Insensitive::Hash->new( 'Content-Type' => 'text/plain', ); # $key is case-insensitive $hash->get( 'Content-Type' ); # => "text/plain" $hash->get( 'content-type' ); # => "text/plain" $hash->set( 'CONTENT-TYPE' => 'text/html' );