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

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