Subject: | newlines sensitive to $\ |
Date: | Mon, 30 Sep 2013 15:52:10 +0100 |
To: | bug-P [...] rt.cpan.org |
From: | Zefram <zefram [...] fysh.org> |
The output that P generates to a filehandle depends on $\:
$ perl -lwe 'use P; P "foo"' | od -tc
0000000 f o o \n \n
0000005
$ perl -we 'use P; P "foo"' | od -tc
0000000 f o o \n
0000004
This is unlike the builtin say, which provides exactly one newline
regardless of $\:
$ perl -lwE 'say "foo"' | od -tc
0000000 f o o \n
0000004
$ perl -wE 'say "foo"' | od -tc
0000000 f o o \n
0000004
P thus fails in its objective of automatically providing sensible
newline behaviour.
-zefram