Re: problems with $r-status('OK')

2002-03-05 Thread Issac Goldstand

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-status('OK')


 hello:
 
 im using Apache/1.3.12 
 and 
 mod_perl/1.24
 
 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
 




problems with $r-status('OK')

2002-03-04 Thread clayton cottingham

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



Re: problems with $r-status('OK')

2002-03-04 Thread Hans Juergen von Lengerke

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 constant


HTH, Hans




Re: problems with $r-status('OK')

2002-03-04 Thread clayton cottingham

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);
   ...
   $r-status(OK);   # No quotes, it's a constant
 
 HTH, Hans

hmm,

ok did that before but i needed a  restart !
sheesh!!


thanks for the quick reply!



Re: problems with $r-status('OK')

2002-03-04 Thread Philip M. Gollucci

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

Science, Discovery,  the Universe (UMCP)
Webmaster  Webship Teacher
URL: http://www.sdu.umd.edu

EJPress.com
Database/PERL Programmer  System Admin
URL : http://www.ejournalpress.com

Resume  : http://p6m7g8.com/Work/index.html


On Mon, 4 Mar 2002, clayton cottingham wrote:

 hello:

 im using Apache/1.3.12
 and
 mod_perl/1.24

 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