Sophie

Sophie

distrib > Mageia > 8 > i586 > media > core-release > by-pkgid > 1a152258a3f82e9fe86d53226dbd6229

perl-MooseX-Method-0.440.0-11.mga8.noarch.rpm

Description:

The problem
This module is an attempt to solve a problem I've often encountered but
never really found any good solution for: validation of method
parameters. How many times have we all ourselves writing code like
this:

sub foo {
my ($self,$args) = @_;

die "Invalid arg1"
unless (defined $arg->{bar} && $arg->{bar} =~ m/bar/);
}

Sources packages:

Other version of this rpm: