- Name: perl-MooseX-Method
- Version: 0.42
- Release: 1mdv2009.0
- Epoch:
- Group: Development/Perl
- License: GPL or Artistic
- Url: http://search.cpan.org/dist/MooseX-Method
- Summary: Method declaration with type checking
- Architecture: noarch
- Size: 36176
- Distribution: Mandriva Linux
- Vendor: Mandriva
- Packager: Guillaume Rousse <guillomovitch@mandriva.org>
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/);
}
- BuildArch:
- ExcludeArch:
- ExclusiveArch:
- Cookie: klodia.mandriva.com 1216070318
- Buildhost: klodia.mandriva.com