You don't want to do that...
You want to do this:
use Apache::Constants qw(:common);
and then $r-status(OK); # (no quotes)
Issac
- Original Message -
From: clayton cottingham [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 04, 2002 6:47 PM
Subject: problems with $r
hello:
im using Apache/1312
and
mod_perl/124
every time i use
the $r-status('OK');
it gives me this error
Argument OK isn't numeric in subroutine entry
has anyone come accross this before?
thanks
clayton cottingham [EMAIL PROTECTED] on Mar 4, 2002:
every time i use
the $r-status('OK');
OK in this context is not a string, but a constant that is defined in
Apache::Constants. Modify your code like this:
use Apache::Constants qw(:common);
...
$r-status(OK); # No quotes, it's a
Hans Juergen von Lengerke wrote:
clayton cottingham [EMAIL PROTECTED] on Mar 4, 2002:
every time i use
the $r-status('OK');
OK in this context is not a string, but a constant that is defined in
Apache::Constants. Modify your code like this:
use Apache::Constants qw(:common);
you'll want to do
use Apache::Constants qw(OK);
and change that to
$r-status(OK);
as OK is actually defined as a constant function
sub OK { 0 }
END
--
Philip M. Gollucci (p6m7g8) [EMAIL PROTECTED] 301.314.3118