in reply to Re^2: What filehandle should be used for HTML prints via CGI??
in thread What filehandle should be used for HTML prints via CGI??
Erm, "output to command line" . . . where to start.
STDOUT is, as the name would imply, the, erm, standard output filehandle. Processes get 3 handles: STDIN, STDOUT, and STDERR. What those actually are hooked up to depends on how whatever forks the process hooks them up to. In the interactive case where you're running something from a shell, they'll all usually be hooked up to a TTY device of some sort. When run as a CGI, the webserver will provide a STDOUT which goes back (after some processing in most cases) to the browser making the request.
In Perl the default filehandle for print will be STDOUT unless you use select (or reopen STDOUT somewhere else). Any output to that handle will go to whatever that file descriptor's hooked to.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: What filehandle should be used for HTML prints via CGI??
by virtualsue (Vicar) on Jan 12, 2007 at 20:08 UTC | |
by Fletch (Bishop) on Jan 12, 2007 at 20:23 UTC | |
|
Re^4: What filehandle should be used for HTML prints via CGI??
by Jenda (Abbot) on Jan 12, 2007 at 23:15 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |