Scalar...eTypes(3pm)
π Scalar::Does::MooseTypes π
okay bestie, so this is a manual page β it lives in the User Contributed Perl Documentation section 3pm, and its whole name is Scalar::Does::MooseTypes. Say it with me. Slay.
β¨ NAME β¨
Scalar::Does::MooseTypes β (DEPRECATED) additional constants for Scalar::Does, inspired by the built-in Moose type constraints. like, it literally says DEPRECATED in the name section, we're not hiding that, we're leading with it π
β¨ SYNOPSIS β¨
okay so here's the vibe. You bring in the constants, and you check stuff:
use 5.010;
use Scalar::Does qw(does);
use Scalar::Does::MooseTypes -all;
my $var = [];
if (does $var, ArrayRef) {
say "It's an arrayref!";
}
the -all is doing the heavy lifting here bestie, it's pulling in every single constant for you π«Ά
β¨ STATUS β¨
This module is DEPRECATED. π
not me being the bearer of bad news but fr fr, 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!";
}
look at that. same energy, same result, way more current. glow up β¨
β¨ DESCRIPTION β¨
π Constants π
okay here's the full roster, every single one, no gatekeeping, no skips, we list them ALL:
"Any""Item""Bool""Undef""Defined""Value""Str""Num""Int""ClassName""RoleName""Ref""ScalarRef""ArrayRef""HashRef""CodeRef""RegexpRef""GlobRef""FileHandle""Object"
that's twenty constants, count them, I did. iconic lineup honestly π
β¨ SEE ALSO β¨
Types::Standard. (the one you should actually be using, just saying π)Scalar::Does,Moose::Util::TypeConstraints.
iykyk π¦
β¨ AUTHOR β¨
Toby Inkster <tobyink@cpan.org>. the legend themselves π
β¨ COPYRIGHT AND LICENCE β¨
This 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.
free software queen behavior, we love to see it π«Ά
β¨ 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.
so like, if it breaks, it's not their fault, no cap, read the caps lock, they meant it π
okay so that's the whole thing bestie!! π this page came to you courtesy of perl v5.40.1, dated 2025-08-04, and the header name you'd see up top is Scalar...eTypes(3pm) because terminals love to abbreviate. bye pookie, go use Types::Standard ππβ¨
π¦ where this page comes from
- ubuntu resolute: libscalar-does-perl 0.203-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libscalar-does-perl 0.203-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms