Skip Menu |
 

This queue is for tickets about the Devel-REPL CPAN distribution.

Report information
The Basics
Id: 107769
Status: open
Priority: 0/
Queue: Devel-REPL

People
Owner: Nobody in particular
Requestors: belozer0 [...] ya.ru
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Print in re.pl does not print immediately
Date: Wed, 14 Oct 2015 10:25:18 +0300
To: bug-devel-repl [...] rt.cpan.org
From: Максим Белозёров <belozer0 [...] ya.ru>
Download (untitled) / with headers
text/plain 246b
Output from print appears after the next statement Steps to reproduce: $ re.pl $ use v5.20 $ my @rr = (1,2,3) $VAR1 = 1; $VAR2 = 2; $VAR3 = 3; $ print "@rr" 1 $ say "@rr" 1 2 31 2 3 # <<< first "1 2 3" is from "print" 1 $ say "@rr" 1 2 3 1 $
Download (untitled) / with headers
text/plain 204b
On 2015-10-14 00:25:30, belozer0@ya.ru wrote: Show quoted text
> Output from print appears after the next statement
I would guess we just need to turn on autoflush for STDOUT. Would you be interested in sending a patch?
Download (untitled) / with headers
text/plain 495b
On Wed Oct 14 12:53:32 2015, ETHER wrote: Show quoted text
> On 2015-10-14 00:25:30, belozer0@ya.ru wrote:
> > Output from print appears after the next statement
> > I would guess we just need to turn on autoflush for STDOUT. Would you > be interested in sending a patch?
I would suggest adding it to a local .re.pl/repl.rc first, since it's unlikely to be fixed soon if a patch were supplied and it's kind of a user choice anyway. $| = 1; # turn on STDOUT autoflush so print immediately happens


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.