- or download this
use Attribute::Property;
...
my $self = shift;
...
}
- or download this
my %params = (
type => qr/Order|Return/,
...
# the following two method calls will fail (croaking)
$param->type = 'Ovid';
$param->month = 13;
- or download this
my $param = @_ == 1 ? shift : Param::function->new({ @_ });