Bug 834221 - perl-5.16.0: Reopening by scalar handle does not work
Summary: perl-5.16.0: Reopening by scalar handle does not work
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: perl
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Marcela Mašláňová
QA Contact: Fedora Extras Quality Assurance
URL: https://rt.perl.org/rt3/Public/Bug/Di...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-21 09:17 UTC by Petr Pisar
Modified: 2012-08-10 09:05 UTC (History)
11 users (show)

Fixed In Version: perl-5.16.1-228.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-10 09:05:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.