package Insensitive::Hash; use strict; use warnings; sub new { my ( $class, @args ) = @_; my %self; while ( my ($key, $value) = splice @args, 0, 2 ) { $self{ lc $key } = $value; } bless \%self, $class; } sub get { my ( $self, $key ) = @_; $self->{ lc $key }; } sub set { my ( $self, $key, $value ) = @_; $self->{ lc $key } = $value; } 1;