New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
read() on a write-only filehandle corrupts a later print() #13294
Comments
From felipe@cpanel.netCreated by felipe@cpanel.netRun the code below: use strict; use File::Temp (); my ( undef, $tfile ) = File::Temp::tempfile(); open my $tfh, '>', #This "corrupts" the file handle and produces the spurious print() failures, print {$tfh} 'haha' or warn "print() failed:$!|\n"; print "Contents:" . `cat ...and notice that the first print() returns a failure, even though it If you take out the read(), this problem goes away. Perl Info
|
From @shlomifI am able to reproduce this bug with perl-5.18.1-2.mga4 on Mageia Linux shlomif@telaviv1:~$ perl Test.pl Regards, -- Shlomi Fish |
The RT System itself - Status changed from 'new' to 'open' |
From @LeontOn Sat, Sep 21, 2013 at 1:01 AM, felipe@cpanel.net <
This bug is a duplicate of #111352 and related to #108124. Actually it's Leon |
Per Leon’s last comment, this is a dupe. Closing. |
Migrated from rt.perl.org#119923 (status was 'open')
Searchable as RT119923$
The text was updated successfully, but these errors were encountered: