PiEquals3 has asked for the wisdom of the Perl Monks concerning the following question:
print header();
..This is strictly according to the CGI.pm manpage. I expect it to do that.Document-type: text/html
...which is fine, I suppose (I trust the module to do the best and newest and most proper thing), except that the !DOCTYPE form doesn't allow my script to properly read input using sysread(). (It hangs until timeout).<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
Deep breath..
So: What's going on? What is !DOCTYPE for, and why does it appear to break sysread()?
This isn't an urgent problem so much as a very frustrating and confusing one and I'd bet I'm not the only casualty.
Oh yeah: ActiveState Perl build 6xx, NT/IIS 4.0, IE5
..and thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(arturo) Re: CGI::header() & What's !DOCTYPE..?
by arturo (Vicar) on Mar 15, 2001 at 21:31 UTC | |
|
Re: CGI::header() & What's !DOCTYPE..?
by chromatic (Archbishop) on Mar 15, 2001 at 21:36 UTC | |
|
Re: CGI::header() & What's !DOCTYPE..?
by davorg (Chancellor) on Mar 15, 2001 at 21:33 UTC | |
|
Re: CGI::header() & What's !DOCTYPE..?
by TGI (Parson) on Mar 15, 2001 at 23:19 UTC | |
|
Re: CGI::header() & What's !DOCTYPE..?
by jeroenes (Priest) on Mar 15, 2001 at 21:32 UTC | |
|
The code, a solution, and many many thanks
by PiEquals3 (Acolyte) on Mar 16, 2001 at 02:46 UTC | |
by chromatic (Archbishop) on Mar 16, 2001 at 09:20 UTC |