From 3db21978a1f03f6e92af1cdefa52085796d93774 Mon Sep 17 00:00:00 2001 From: doy Date: Wed, 4 Feb 2009 19:46:59 -0500 Subject: fix synopsis bug --- lib/MooseX/Role/Matcher.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MooseX/Role/Matcher.pm b/lib/MooseX/Role/Matcher.pm index e7c314a..c7587d6 100644 --- a/lib/MooseX/Role/Matcher.pm +++ b/lib/MooseX/Role/Matcher.pm @@ -32,7 +32,7 @@ MooseX::Role::Matcher - generic object matching based on attributes and methods my @not_twenty_two = Person->grep_matches([@people], '!age' => 22); # do any of the 22-year-olds have a phone number ending in 4? - Person->any_match([@people], age => 22, number => qr/4$/); + Person->any_match([@people], age => 22, phone => qr/4$/); # does everyone's name start with either J or E? Person->all_match([@people], name => [qr/^J/, qr/^E/]); -- cgit v1.2.3