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

Re: Tidy piping in perl

From: Dave Raggett <dsr@w3.org>
Date: Tue, 25 May 1999 01:40:14 +0100 (GMT Daylight Time)
To: Bjoern Hoehrmann <hoermi@arcormail.de>
cc: html-tidy@w3.org
Message-ID: <Pine.WNT.4.10.9905250139360.-244699@hazel.hpl.hp.com>
On Sat, 22 May 1999, Bjoern Hoehrmann wrote:

> 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)

Sorry, I regret to say that I am not a Perl hacker and am unable
to diagnose the problem.

Regards,

-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
phone: +44 122 578 2984 (or 2521) +44 385 320 444 (gsm mobile)
World Wide Web Consortium (on assignment from HP Labs)
Received on Monday, 24 May 1999 20:39:30 GMT

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