Bug 1113638

Summary: Can't call method "filter" on unblessed reference
Product: [Fedora] Fedora Reporter: Sreekumar R <sreekumar.r84>
Component: perl-FilterAssignee: Petr Pisar <ppisar>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: mmaslano, perl-devel, ppisar
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-26 14:34:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sreekumar R 2014-06-26 14:22:29 UTC
Description of problem:
The latest release of perl-filter (1:1.50-1.fc20) from updates-testing seems to be breaking Switch. I am getting an error on executing or on a Deparse of a perl script on the line after "use Switch;"
Downgrading to version perl-Filter.x86_64 1:1.49-5.fc20 fixed the issue


Version-Release number of selected component (if applicable):
perl-Filter-1.50-1.fc20.x86_64


How reproducible:
Always


Steps to Reproduce:
1. Run the perl script with below contents

use strict;
use Switch;

my $var = "test";

switch ($var) {
	case "test" {
		print "test\n";
	}
	else {
		print "not test\n";
	}
}

Actual results:
Prints error message
Can't call method "filter" on unblessed reference at filtertest.pl line 4.

Expected results:
Print test

Additional info:

Comment 1 Petr Pisar 2014-06-26 14:34:32 UTC
This is addressed in bug #1106210.

(I thought reporting the "perl -d" produces "Source filters apply only to byte streams" as a new bug.)

*** This bug has been marked as a duplicate of bug 1106210 ***