From 6624bc8b7b053d3fda504531087426b107882593 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 9 Jul 2011 01:50:56 -0500 Subject: undef ~~ Regex shouldn't warn --- lib/smartmatch/engine/core.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/smartmatch/engine/core.pm b/lib/smartmatch/engine/core.pm index 40a3d06..7bf5c02 100644 --- a/lib/smartmatch/engine/core.pm +++ b/lib/smartmatch/engine/core.pm @@ -189,6 +189,7 @@ sub match { return grep /$b/, @$a; } else { + no warnings 'uninitialized'; return $a =~ $b; } } -- cgit v1.2.3-54-g00ecf