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

Report information
The Basics
Id:
60183
Status:
open
Priority:
Low/Low
Queue:

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

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



CC: xenoterracide@gmail.com
Subject: interesting output from simple code
I find this behavior peculiar seems that re.pl behaves differently from regular perl... re.pl $ print "Test one: ", 6 > 3 && 3 > 4, "\n"; Test one: 1 $ print "Test two: ", 6 > 3 and 3 > 4, "\n"; $ARRAY1 = [ '', "\n" ]; $ print ("Test two: ", 6 > 3) and 3 > 4, "\n"; $ARRAY1 = [ '', "\n" ]; $ exit Test two: 1Test two: 1% same code in a script ./test.pl Useless use of a constant ( ) in void context at ./test.pl line 5. Useless use of a constant ( ) in void context at ./test.pl line 6. Test one: Test two: 1Test two: 1% in both cases use 5.012; use warnings; should be enabled. I don't understand why the output for the second 2 isn't printed right away, and why the warnings are never printed in re.pl the $ARRAY is just of course a dump.
It boils down to the fact that the runtime environment is different due to the interactive shell. If you set $|=1 you'll get the standard output right away rather than being buffered and appearing later... As for the compile warnings, I would like to see those output as well. The current Devel::REPL just swollows them. --Chris On Mon Aug 09 03:52:50 2010, XENO wrote:
Show quoted text
> ... > > in both cases use 5.012; use warnings; should be enabled. > > I don't understand why the output for the second 2 isn't printed right > away, and why the warnings are never printed in re.pl the $ARRAY is > just of course a dump.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

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