Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > cb1cc3ef9a0be4b0388f3a6d34c3c483

perl-MooseX-Method-0.440.0-1.mga1.src.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/);
}

Generated packages:

Other version of this rpm: