From a90f35e18274df56f4d2aa2a8ddb4e01bfe24b93 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 7 Jul 2011 17:44:21 -0500 Subject: fix syntax error --- lib/smartmatch/engine/rjbs.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/smartmatch/engine/rjbs.pm') diff --git a/lib/smartmatch/engine/rjbs.pm b/lib/smartmatch/engine/rjbs.pm index fb2dfc6..6f0d964 100644 --- a/lib/smartmatch/engine/rjbs.pm +++ b/lib/smartmatch/engine/rjbs.pm @@ -11,13 +11,13 @@ sub match { if (!defined($b)) { return !defined($a); } - elsif (blessed($b) && my $overload = overload::Method($b, '~~')) { + elsif (blessed($b) && (my $overload = overload::Method($b, '~~'))) { return $b->$overload($a, 1); } elsif (reftype($b) eq 'REGEXP') { return $a =~ $b; } - elsif (blessed($b) && my $overload = overload::Method($b, '=~')) { + elsif (blessed($b) && overload::Method($b, '=~')) { return $a =~ $b; } elsif (!blessed($b) && reftype($b) eq 'CODE') { -- cgit v1.2.3