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>
Hi,
I wrote a perl script like

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

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

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

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,

regards,
   Bjoern
Received on Saturday, 22 May 1999 10:04:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:42 GMT