- Name: perl-MooseX-Method
- Version: 0.440.0
- Release: 1mdv2010.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: 39850
- Distribution: Mandriva Linux
- Vendor: Mandriva
- Packager: Jérôme Quelin <jquelin@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: n5.mandriva.com 1249122816
- Buildhost: n5.mandriva.com