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
eof() on write-only filehandle breaks it #11863
Comments
From @LeontCreated by @LeontObserve: perl -E 'say eof STDOUT, 2' This outputs a "1" without the "2" and without a newline. Actually, this is two bugs, though they're rather linked: eof() tries To fix the first bug, I suggest not trying to read from a write-only To fix the second bug (printing one element but not the rest), I Perl Info
|
From @cpansproutOn Thu Jan 12 17:36:22 2012, LeonT wrote:
What a coincidence! Just today I discovered a similar bug with -T -- Father Chrysostomos |
The RT System itself - Status changed from 'new' to 'open' |
From @LeontOn Fri, Jan 13, 2012 at 3:10 AM, Father Chrysostomos via RT
And possibly there are more issues like that. We should either decide Leon |
From @cpansproutOn Sun Jan 15 08:05:08 2012, LeonT wrote:
I wonder why readline doesn’t do that: $ perl -le' <STDOUT>; print "a","b"' -- Father Chrysostomos |
From @LeontOn Sun, Jan 15, 2012 at 8:15 PM, Father Chrysostomos via RT
Because readline for some reason I do not quite understand, seems to perl -le' read STDOUT, my $foo, 1; print "a","b"' It's a mess, really. Leon |
From @cpansproutOn Sun Jan 15 11:42:34 2012, LeonT wrote:
That suggests to me that print should just ignore the error flag and Or it could check the error status before printing (is the actual errno -- Father Chrysostomos |
Migrated from rt.perl.org#108124 (status was 'open')
Searchable as RT108124$
The text was updated successfully, but these errors were encountered: