Reposting a question (and the answer) that geoff and I discussed in the 
IRC room, as I think it's worthwhile to mention...

I had the following line of code (actually many of the sort):
$r->custom_response(FORBIDDEN=>"File size exceeds quota.");

And kept getting errors like:
[Tue Apr 23 19:46:14 2002] null: Argument "FORBIDDEN" isn't numeric in 
subroutine entry at /usr/local/httpd/lib/perl/Mine/Pic/Application.pm 
line 1343.

The answer to the problem is that by using '=>' instead of ',', I was 
making 'FORBIDDEN' become '"FORBIDDEN"' (string instead of numeric 403).

Moral of the story: don't use => with Apache::Constants!

Hope this helps some of you...

  Issac

Reply via email to