projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
d92dac8
)
stop overriding the prototype on List::Util::first
Jesse Luehrs [Wed, 11 Nov 2009 23:29:14 +0000 (17:29 -0600)]
lib/Moose/Meta/Attribute/Native/MethodProvider/Array.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Meta/Attribute/Native/MethodProvider/Array.pm
b/lib/Moose/Meta/Attribute/Native/MethodProvider/Array.pm
index
8ce0e24
..
733c22e
100644
(file)
--- a/
lib/Moose/Meta/Attribute/Native/MethodProvider/Array.pm
+++ b/
lib/Moose/Meta/Attribute/Native/MethodProvider/Array.pm
@@
-26,7
+26,7
@@
sub first : method {
my ( $attr, $reader, $writer ) = @_;
return sub {
my ( $instance, $predicate ) = @_;
- &List::Util::first($predicate, @{ $reader->($instance) });
+ List::Util::first { $predicate->() } @{ $reader->($instance) };
};
}