Blame SOURCES/Switch-2.17-Filter-1.50.patch

9a0cfa
diff -up Switch-2.17/Switch.pm.fixme Switch-2.17/Switch.pm
9a0cfa
--- Switch-2.17/Switch.pm.fixme	2014-06-10 13:03:40.395988520 -0400
9a0cfa
+++ Switch-2.17/Switch.pm	2014-06-10 13:04:50.909488953 -0400
9a0cfa
@@ -25,9 +25,11 @@ my ($Perl5, $Perl6) = (0,0);
9a0cfa
 
9a0cfa
 sub import
9a0cfa
 {
9a0cfa
+	my ($class) = @_;
9a0cfa
+	my $self = bless {}, $class;
9a0cfa
 	$fallthrough = grep /\bfallthrough\b/, @_;
9a0cfa
 	$offset = (caller)[2]+1;
9a0cfa
-	filter_add({}) unless @_>1 && $_[1] eq 'noimport';
9a0cfa
+	filter_add($self) unless @_>1 && $_[1] eq 'noimport';
9a0cfa
 	my $pkg = caller;
9a0cfa
 	no strict 'refs';
9a0cfa
 	for ( qw( on_defined on_exists ) )