- or download this
use feature qw( state );
use Type::Params qw( compile );
...
return $x + $y;
}
- or download this
use feature qw( state );
use Type::Params qw( compile_named_oo );
...
return $arg->x + $arg->y;
}
- or download this
use feature qw( state );
use Type::Params qw( signature );
...
return $x + $y;
}
- or download this
use feature qw( state );
use Type::Params qw( signature );
...
return $arg->x + $arg->y;
}
- or download this
use experimental qw( signatures );
use Type::Params qw( signature_for );
...
sub add_numbers ( $self, $arg ) {
return $arg->x + $arg->y;
}
- or download this
use Type::Tiny::Enum Size => [ qw( S M L XL ) ];
- or download this
package Local::TShirt {
use Moose;
...
}
}
}
- or download this
sub post_data ( $url, $data, $ua=undef ) {
...
$ua = HTTPTiny->new unless is_HTTPTiny $ua;
$ua->post( $url, $data );
}
- or download this
use Types::Common -all;
- or download this
use Types::Common qw( signature_for Num NonEmptyStr );
</pre>
...
<c>
use Types::Common -lexical, -all;
- or download this
has lucky_numbers => (
is => 'ro',
isa => ArrayRef[ Num / Any ],
);
- or download this
has output_list => (
is => 'ro',
isa => ArrayRef,
default => sub { [] },
);
- or download this
has output_list => (
is => 'ro',
isa => ArrayRef,
default => ArrayRef->type_default,
);
- or download this
has colour_scheme => (
is => 'ro',
...
return \%colours;
},
);