Bug 834221 - perl-5.16.0: Reopening by scalar handle does not work
perl-5.16.0: Reopening by scalar handle does not work
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: perl (Show other bugs)
rawhide
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Marcela Mašláňová
Fedora Extras Quality Assurance
https://rt.perl.org/rt3/Public/Bug/Di...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-21 05:17 EDT by Petr Pisar
Modified: 2012-08-10 05:05 EDT (History)
11 users (show)

See Also:
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 05:05:58 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Petr Pisar 2012-06-21 05:17:43 EDT
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@cpan.org>
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.