Types::Const - Types that coerce references to read-only
version v0.1.0
use Types::Const -types; use Types::Standard -types; ... has bar => ( is => 'ro', isa => ConstArrayRef, coerce => 1, );
The type library provides types that allow read-only attributes to be read-only.
ConstArrayRef
A read-only array reference.
ConstHashRef
A read-only hash reference.
Parameterized types, e.g. ConstArrayRef[Int] are not yet supported.
ConstArrayRef[Int]
Const::Fast
Type::Tiny
The development version is on github at https://github.com/robrwo/Types-Const and may be cloned from git://github.com/robrwo/Types-Const.git
Please report any bugs or feature requests on the bugtracker website https://github.com/robrwo/Types-Const/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Robert Rothenberg <rrwo@cpan.org>
This software is Copyright (c) 2018 by Robert Rothenberg.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install Types::Const, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Types::Const
CPAN shell
perl -MCPAN -e shell install Types::Const
For more information on module installation, please visit the detailed CPAN module installation guide.