W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 1999

Tidy piping in perl

From: Bjoern Hoehrmann <hoermi@arcormail.de>
Date: Sat, 22 May 1999 16:03:45 +0200
Message-ID: <005801bea45b$f90b7750$c7e0a8c0@de>
To: <html-tidy@w3.org>
I wrote a perl script like

open( TIDY, "| tidy") || print "Couldn't open TIDY:$!";

print TIDY <<"_END_";
<P>some bad </h2>markup</I></HTML></BODY>

close(TIDY) || die print "couldn't close TIDY:$!";

And i get the errormessage
"couldn't close TIDY:1 at tidy2.pl line 9."

Normally a script like this works fine, but with Tidy it doesn't.

Why? What's wrong with my script?

I'm using Active Perl 5.005_03 (win32) and Tidy (vers 14th April 1999)

TIA for help,

Received on Saturday, 22 May 1999 10:04:43 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:46 UTC