Tie::Hash::Check - Tied construct for hash key checking.
use Tie::Hash::Check; tie my %hash, 'Tie::Hash::Check', { %parameters, };
TIEHASH
Hash create.
CLEAR
Hash clear.
DELETE
Hash delete.
EXISTS
Hash exists.
FETCH
Hash fetch.
FIRSTKEY
Hash first key.
NEXTKEY
Hash nextkey.
SCALAR
Hash scalar.
STORE
Hash store.
TIEHASH(): Parameter isn't hash. Stack isn't array. FETCH(): Key '%s' doesn't exist.
use strict; use warnings; use Tie::Hash::Check; # Set error type. $ENV{'ERROR_PURE_TYPE'} = 'Print'; # Tied hash. tie my %hash, 'Tie::Hash::Check', { 'one' => 1, 'two' => 2, }; # Turn error "Key 'three' doesn't exist.". print $hash{'three'}; # Output: # Tie::Hash::Check: Key 'three' doesn't exist.
Error::Pure, Error::Pure::Utils.
https://github.com/michal-josef-spacek/Hash-Check.
Michal Josef Špaček mailto:skim@cpan.org
http://skim.cz
© 2009-2020 Michal Josef Špaček
BSD 2-Clause License
0.09
To install Tie::Hash::Check, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tie::Hash::Check
CPAN shell
perl -MCPAN -e shell install Tie::Hash::Check
For more information on module installation, please visit the detailed CPAN module installation guide.