At 19:29 23.04.2002, Issac Goldstand wrote: >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!
Or you can use &FORBIDDEN or FORBIDDEN() or +FORBIDDEN, which are another fix if you want to continue using =>. -- Per Einar Ellefsen [EMAIL PROTECTED]