From: Shawn M Moore Date: Thu, 22 May 2008 23:28:34 +0000 (+0000) Subject: elements takes no extra argument X-Git-Tag: 0.18_01~34 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c80e166868b7474b25e52f378d2dc48e251c1866;p=gitmo%2FMooseX-AttributeHelpers.git elements takes no extra argument --- diff --git a/lib/MooseX/AttributeHelpers/MethodProvider/List.pm b/lib/MooseX/AttributeHelpers/MethodProvider/List.pm index b34fba2..82a1274 100644 --- a/lib/MooseX/AttributeHelpers/MethodProvider/List.pm +++ b/lib/MooseX/AttributeHelpers/MethodProvider/List.pm @@ -48,7 +48,7 @@ sub grep : method { sub elements : method { my ($attr, $reader, $writer) = @_; return sub { - my ($instance, $f) = @_; + my ($instance) = @_; @{$reader->($instance)} }; }