in reply to die function error

Add the following line to your CGI script. It will send all errors and warnings both to the log file and to the browser.

use CGI::Carp qw/warningsToBrowser fatalsToBrowser/;

bbfu
Black flowers blossum
Fearless on my breath

Replies are listed 'Best First'.
Re: (bbfu) (CGI::Carp) Re: die function error
by bsexton1qBob Sexton (Novice) on Dec 03, 2002 at 23:41 UTC
    I guess I'm stupid here. I changed the code to.
    if ($size > $max) { print "You have exceeded your limit of $max for the directory $email_a +ddr +ess\n"; }
    I still get the internal server error, only when the $max is exceeded.

      You're probably not returning valid HTTP response headers. Use CGI and print $cgi->header().

      bbfu
      Black flowers blossum
      Fearless on my breath