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

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