![]() |
![]()
| ![]() |
![]()
NAMEScalar::Does::MooseTypes - (DEPRECATED) additional constants for Scalar::Does, inspired by the built-in Moose type constraints SYNOPSISuse 5.010; use Scalar::Does qw(does); use Scalar::Does::MooseTypes -all; my $var = []; if (does $var, ArrayRef) { say "It's an arrayref!"; } STATUSThis module is deprecated; use Types::Standard instead: use 5.010; use Scalar::Does qw(does); use Types::Standard qw(ArrayRef); my $var = []; if (does $var, ArrayRef) { say "It's an arrayref!"; } DESCRIPTIONConstants
SEE ALSOTypes::Standard. Scalar::Does, Moose::Util::TypeConstraints. AUTHORToby Inkster <tobyink@cpan.org>. COPYRIGHT AND LICENCEThis software is copyright (c) 2012-2014, 2017 by Toby Inkster. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. DISCLAIMER OF WARRANTIESTHIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|