List::Objects::WithUtils::Hash::Immutable - Immutable hash objects
use List::Objects::WithUtils 'immhash'; my $hash = immhash( foo => 1, bar => 2 );
These are immutable hash objects; attempting to call list-mutating methods will throw an exception.
This class consumes the following roles, which contain most of the relevant documentation:
List::Objects::WithUtils::Role::Hash
List::Objects::WithUtils::Role::Hash::Immutable
(See List::Objects::WithUtils::Hash for a mutable implementation.)
Creates a new immutable hash object.
Jon Portnoy <avenj@cobaltirc.org>
To install List::Objects::WithUtils, copy and paste the appropriate command in to your terminal.
cpanm
cpanm List::Objects::WithUtils
CPAN shell
perl -MCPAN -e shell install List::Objects::WithUtils
For more information on module installation, please visit the detailed CPAN module installation guide.