On Fri, 5 Sep 2008, Torsten Foertsch wrote:

Don't know if it relates to the problem but this code is quite fragile.
It depends upon whether $content completely fits into the operating
systems pipe buffer. In your program the print $wtr or the close $wtr
statements may infinitely block if $content is too large.

thanks for pointing that out, I didn't know that.
To keep it simple, I decided to write the code into a temporary file
and give it as an argument to source-highlight, so that I can call it
with a simple one-directional pipe-open.

Still, it would be interesting to know why the code did not work in MP
2.02.

regards,
tina

--
http://darkdance.net/
http://perlpunks.de/
http://www.trashcave.de/

Reply via email to