logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Scalar::Does::MooseTypes - (DEPRECATED) additional constants for Scalar::Does, inspired by the built-in

Author

       Toby Inkster <tobyink@cpan.org>.

Description

Constants
       "Any"
       "Item"
       "Bool"
       "Undef"
       "Defined"
       "Value"
       "Str"
       "Num"
       "Int"
       "ClassName"
       "RoleName"
       "Ref"
       "ScalarRef"
       "ArrayRef"
       "HashRef"
       "CodeRef"
       "RegexpRef"
       "GlobRef"
       "FileHandle"
       "Object"

Disclaimer Of Warranties

       THIS 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.

perl v5.40.1                                       2025-08-04                      Scalar::Does::MooseTypes(3pm)

Name

       Scalar::Does::MooseTypes - (DEPRECATED) additional constants for Scalar::Does, inspired by the built-in
       Moose type constraints

See Also

       Types::Standard.

       Scalar::Does, Moose::Util::TypeConstraints.

Status

       This 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!";
         }

Synopsis

         use 5.010;
         use Scalar::Does qw(does);
         use Scalar::Does::MooseTypes -all;

         my $var = [];
         if (does $var, ArrayRef) {
           say "It's an arrayref!";
         }

See Also