Ubuntu Manpages

Hash::Case::Upper

native hash with enforced lower cased keys

 Hash::Case::Upper
   is a Hash::Case
   is a Tie::StdHash

  use Hash::Case::Upper;
  tie my(%uchash), 'Hash::Case::Upper';
  $uchash{StraNGeKeY} = 3;
  print keys %uchash;  # STRANGEKEY

Hash::Case::Upper extends Hash::Case, which lets you play various trics with hash keys. In this implementation, the fake hash is case insensitive and the keys stored in upper-case.

Extends "DESCRIPTION" in Hash::Case.

Extends "METHODS" in Hash::Case.

Extends "Constructors" in Hash::Case.

Define %hash to have only upper-cased keys. The hash is initialized with the $values, specified as ARRAY or HASH. Currently, there are no %options defined. Improves base, see "Constructors" in Hash::Case

Extends "Hidden object access" in Hash::Case.

$obj->addHashData(\%data)
Inherited, see "Hidden object access" in Hash::Case
$obj->addPairs(@pairs)
Inherited, see "Hidden object access" in Hash::Case
$obj->setHash(\%data)
Inherited, see "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.