Scalar::Does::MooseTypes(3pm)

Scalar::Does::MooseTypes3pm

(deprecated) additional constants for scalar::does, inspired by the built-in moose type constraints

Usage

  use 5.010;
  use Scalar::Does qw(does);
  use Scalar::Does::MooseTypes -all;
  
  my $var = [];
  if (does $var, ArrayRef) {
    say "It's an arrayref!";
  }

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

Overview

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.

Releases

6 releases since Debian 8 (Jessie); the text changed 4 times.

  1. 8–9
  2. 10
  3. 11
  4. 12
  5. 13

Author

Toby Inkster <[email protected]>.

From libscalar-does-perl 0.203-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.