Hash::Fold::Error
use Hash::Fold::Error; Hash::Fold::Error->throw($message); Hash::Fold::Error->throw({ message => $message, path => $path, type => $type, });
Hash::Fold throws an instance of this class on error.
If the path attribute is defined, the error was thrown during merging or unfolding, and the message indicates the location in the structure that was inappropriately used as an array or a hash.
path
"type" is set to either array or hash.
array
hash
When defined, type indicates the type of the structure which caused the error.
type
To install Hash::Fold, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Hash::Fold
CPAN shell
perl -MCPAN -e shell install Hash::Fold
For more information on module installation, please visit the detailed CPAN module installation guide.