Hash::Case::Preserve
hash with enforced lower cased keys
- Provided by: libhash-case-perl (Version: 1.070-1)
- Report a bug
hash with enforced lower cased keys
Hash::Case::Preserve is a Hash::Case is a Tie::StdHash
use Hash::Case::Preserve;
tie my(%cphash), 'Hash::Case::Preserve';
$cphash{StraNGeKeY} = 3;
print keys %cphash; # StraNGeKeY
print $cphash{strangekey}; # 3
print $cphash{STRANGEKEY}; # 3
Hash::Case::Preserve extends Hash::Case, which lets you play various trics with hash keys. This extension implements a fake hash which is case-insentive. The keys are administered in the casing as they were used: case-insensitive but case-preserving.
Extends "DESCRIPTION" in Hash::Case.
Extends "METHODS" in Hash::Case.
Extends "Constructors" in Hash::Case.
-Option--Default
keep 'LAST'
Extends "Hidden object access" in Hash::Case.
This module is part of Hash-Case version 1.07, built on January 26, 2026. Website: http://perl.overmeer.net/CPAN/
For contributors see file ChangeLog.
This software is copyright (c) 2002-2026 by Mark Overmeer.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.