in reply to STDERR ignored?

Well it works for me. When I run:

#!/usr/bin/perl -w use strict; use CGI qw(:standard); print STDERR "TEST"; print header(),start_html(),"foo";
I get 'TEST' in my error log as I expect. It is difficult to know what is going on for you without more information but I would suspect that you are running the program under mod_perl although I am not sure how the die() would work under that circumstance.

/J\

Replies are listed 'Best First'.
Re: Re: STDERR ignored?
by yosefm (Friar) on Jun 21, 2003 at 09:33 UTC
    I'm not running under mod_perl. This is just a regular CGI scripts. The wierd thing is that this behaveiour only happens when I give my script parameters (/.../addItem.cgi?media_type=1).

      I think you had better show us the smallest bit of code that you have that exhibits this behaviour as my test program still prints to the error log when I add parameters.

      /J\