Skip Menu |

This queue is for tickets about the P CPAN distribution.

Report information
The Basics
Id: 89059
Status: resolved
Priority: 0/
Queue: P

People
Owner: pause [...] tlinx.org
Requestors: zefram [...] fysh.org
Cc:
AdminCc:

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



Subject: \x83 suppresses all output
Date: Mon, 30 Sep 2013 13:42:20 +0100
To: bug-P [...] rt.cpan.org
From: Zefram <zefram [...] fysh.org>
P's "MORE EXAMPLES" doc says that including \x83 at the end of a format string will "suppress auto-NL to FH's". It does more than that: it suppresses all output. Using the example straight from the documentation: $ perl -Ilib -e 'use P; P "Hello \x83"; P "World";' World od confirms that "Hello" has disappeared entirely: $ perl -Ilib -e 'use P; P "Hello \x83"; P "World";' | od -tc 0000000 W o r l d \n 0000006 -zefram
It turns out it worked in the "Pe" case which I used for testing as it had unbuffered output by default. In the case where no file descriptor was specified, the setting to suppress the LF, collided with the setting to only format the line and return the output as a string. Fixed in Devel version...
Fixed in 1.1.0