Bug 834221

Summary: perl-5.16.0: Reopening by scalar handle does not work
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perlAssignee: Marcela Mašláňová <mmaslano>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: cweyl, iarnell, jplesnik, kasal, lkundrak, mmaslano, perl-devel, ppisar, psabata, rc040203, tcallawa
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://rt.perl.org/rt3/Public/Bug/Display.html?id=113764
Whiteboard:
Fixed In Version: perl-5.16.1-228.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-10 09:05:58 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 Petr Pisar 2012-06-21 09:17:43 UTC
Reopening file by scalar handler has been broken in perl 5.16.0:

    open FILE, '>', \my $content or die "Couldn't open scalar filehandle";
    open my $fh, ">&=FILE" or die "Couldn't open: $!";
    print $fh "Foo-Bar\n";
    close $fh;
    close FILE;
    print $content;

This has been fixed by upstream commit:

commit 7b3cf1c058e25efdde99ad84398db2e7bc9892b4
Author: Father Chrysostomos <sprout>
Date:   Wed Jun 20 23:33:28 2012 -0700

    [perl #113764] Make &= duping work with PerlIO::scalar