/usr/share/perl5/Parse/Method/Signatures/Types.pm is in libparse-method-signatures-perl 1.003014-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | use strict;
use warnings;
package Parse::Method::Signatures::Types;
use Moose::Util::TypeConstraints;
use MooseX::Types::Moose qw/Str ArrayRef/;
use namespace::clean;
use MooseX::Types -declare => [qw/
VariableName
TypeConstraint
Param
ParamCollection
PositionalParam
NamedParam
UnpackedParam
/];
subtype VariableName,
as Str,
where { /^[\$@%](?:[a-z_][a-z_\d]*)?$/i },
message { 'not a valid variable name' };
subtype TypeConstraint,
as 'Moose::Meta::TypeConstraint';
class_type Param, { class => 'Parse::Method::Signatures::Param' };
class_type ParamCollection, { class => 'Parse::Method::Signatures::ParamCollection' };
coerce ParamCollection,
from ArrayRef,
via { Parse::Method::Signatures::ParamCollection->new(params => $_) };
role_type PositionalParam, { role => 'Parse::Method::Signatures::Param::Positional' };
role_type NamedParam, { role => 'Parse::Method::Signatures::Param::Named' };
role_type UnpackedParam, { role => 'Parse::Method::Signatures::Param::Unpacked' };
1;
|