Perl & PHP output format mismatching
| From: | mickb at free dot fr | Date: | Mon, 15 May 2006 09:21:42 +0000 |
| Subject: | Perl & PHP output format mismatching | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-236178@lists.php.net to get a copy of this message | ||
Hello,
I'm currently writing a PHP page, which uses a small Perl script. But I
encounter an annoying problem with endline character.
A small example :
$perl = new Perl();
$perl->eval('print "toto\ntata"');
In this configuration, the HTML page generated sends me :
toto tata
Of course and you should have understood already :-), I would like :
toto
tata
I suppose I have to do a little manipulation on the PHP streams to make them
correctly interpret the endline character returned by Perl. But I didn't find
what :(
Help would be greatly appreciated.
Thanks.