List::Objects::WithUtils::Array::Immutable - Immutable array objects
use List::Objects::WithUtils 'immarray'; my $array = immarray(qw/ a b c /); my ($head, $rest) = $array->head;
A subclass of List::Objects::WithUtils::Array without the following list-mutating methods:
clear set pop push shift unshift delete insert splice
The array is marked read-only; attempting to call the methods listed above or manually modify the backing ARRAY reference will throw an exception.
Jon Portnoy <avenj@cobaltirc.org>
Licensed under the same terms as Perl.
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.