Skip Menu |

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

Report information
The Basics
Id: 53350
Status: open
Priority: 0/
Queue: Padre-Plugin-REPL

People
Owner: Nobody in particular
Requestors: mahony357 [...] gmail.com
Cc:
AdminCc:

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



Subject: rt.cpan.org #49678
Date: Mon, 4 Jan 2010 20:20:59 +0000
To: bug-Padre-Plugin-REPL [...] rt.cpan.org
From: Colm O Mahony <mahony357 [...] gmail.com>
Thanks. Must be a windows thing. The return value of the expression is not printed. This is what I am getting. With Devel::REPL using cmd.exe $ print 5; $ 5 $ print (print 5); $ 51 With Devel::REPL using winbash bash$ re $ print 5; $ 5 $ print (print 5); $ 51 Glad to know it is not a bug. Ryan Niebur via RT wrote: <URL: https://rt.cpan.org/Ticket/Display.html?id=49678 > On Sun Sep 13 21:21:54 2009, omahony wrote: perl v5.10.0 built for MSWin32-x86-multi-thread Padre 0.46, wxWidgets 2.8.10 unicode=(1) Windows XP The numeral '1' is added to the result in the output pane of Padre. that's because print returned 1. e.g 'Print 5;' will produce '51'. This does not happen when using the REPL module outside of Padre. it does for me.
It has to do with the buffering of stdio. If you want to see everything, I recommend $|=1 which makes everything show up and is not unreasonable for an interactive shell where the loss of buffering performance is less noticeable. --Chris On Mon Jan 04 15:21:24 2010, mahony357@gmail.com wrote: Show quoted text
> Thanks. Must be a windows thing. The return value of the > expression is not printed. This is what I am getting. > > With Devel::REPL using cmd.exe > > $ print 5; > $ 5 > $ print (print 5); > $ 51 > > > With Devel::REPL using winbash > > bash$ re > $ print 5; > $ 5 > $ print (print 5); > $ 51 > > Glad to know it is not a bug. > > > > > Ryan Niebur via RT wrote: > > <URL: https://rt.cpan.org/Ticket/Display.html?id=49678 > > > On Sun Sep 13 21:21:54 2009, omahony wrote: > > perl v5.10.0 built for MSWin32-x86-multi-thread > Padre 0.46, wxWidgets 2.8.10 unicode=(1) > Windows XP > > > The numeral '1' is added to the result in the output pane of Padre. > > > that's because print returned 1. > > e.g 'Print 5;' will produce '51'. This does not happen when using the > REPL module outside of Padre. > > > it does for me.