Data::Object::Immutable - Immutable Object for Perl 5
use Data::Object::Immutable; my $object = Data::Object::Immutable->new([1..9]); $object->isa('Data::Object::Array'); # 1 $object->count; # 9 $object->++; # fatal ... modification of a read-only value attempted
Data::Object::Immutable provides a mechanism for making any Data::Object data type object immutable. An immutable object is an object whose state cannot be modified after it is created; Immutable objects are often useful because they are inherently thread-safe, easier to reason about, and offer higher security than mutable objects.
Al Newkirk firstname.lastname@example.org
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 by Al Newkirk.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.