On Thu 09 May 2002 at 11:14:22 +0900, Brian Wisti wrote:

> Hi all,
> 
> I'm stuck on a silly question.  How do I print to the httpd error log
> with my ruby CGI program?  Under perl, I would just do:
> 
> 	print STDERR "debug info\n";
> 
> Not exactly sure how to go about this.  I tried:
> 
> 	$stderr.print "debug info"

Use '$stderr.puts' to get a new-line at the end of your string. You
might also want '$stderr.flush' to turn off data buffering.

> With no output.  Any suggestions?  As an aside, are there many
> good english-language guides to ruby and CGI?

The pick-axe book has a good chapter on the CGI library. I don't know
of a specialised publication, though.

Ian
-- 
Ian Macdonald               | Lizzie Borden took an axe, And plunged it
ian / caliban.org             | deep into the VAX; Don't you envy people
                            | who Do all the things YOU want to do? 
                            | 
                            |