Re: mod_perl developers cookbook... a kitchen hand asks... doh!

2002-03-24 Thread Issac Goldstand
You must have taken this subroutine out of context. There are a certain number of things which must appear for an Apache handler to work: package Apache::Whatever; You need to have that line to uniquely identify your module. If you use the name Apache::Whatever, your handler must be

Re: mod_perl developers cookbook... a kitchen hand asks... doh!

2002-03-24 Thread Per Einar Ellefsen
At 01:23 25.03.2002, Issac Goldstand wrote: You must have taken this subroutine out of context. There are a certain number of things which must appear for an Apache handler to work: package Apache::Whatever; You need to have that line to uniquely identify your module. If you use the name

mod_perl developers cookbook... a kitchen hand asks... doh!

2002-03-23 Thread Jeff
Just Curious of Hither Green writes: I feel like a right tit for asking this... I already have mod_perl et al running, including my persistent DB connections etc etc, but following gourmet cookery advice on this list induced me to buy a copy of the mod_perl Developers Cookbook... and yes, my

Re: mod_perl developers cookbook... a kitchen hand asks... doh!

2002-03-23 Thread Ade Olonoh
1) OK - Bareword OK not allowed while strict subs in use well, that's easy to fix - I must be missing a 'use' [which one??] I assume OK is 1 - ie TRUE OK is a constant for the HTTP return code 200. Add: use Apache::Constants ':common'; to the top of your prog. and it

Re: mod_perl developers cookbook... a kitchen hand asks... doh!

2002-03-23 Thread Geoffrey Young
Jeff wrote: Just Curious of Hither Green writes: I feel like a right tit for asking this... I already have mod_perl et al running, including my persistent DB connections etc etc, but following gourmet cookery advice on this list induced me to buy a copy of the mod_perl

Re: mod_perl developers cookbook... a kitchen hand asks... doh!

2002-03-23 Thread Geoffrey Young
OK is a constant for the HTTP return code 200. close. OK is 0, which is different from HTTP_OK which is 200. --Geoff

Re: mod_perl developers cookbook... a kitchen hand asks... doh!

2002-03-23 Thread Per Einar Ellefsen
At 17:30 23.03.2002 +, Jeff wrote: Just Curious of Hither Green writes: So, I am working my way through, and get to page 83 which has a little spellette: sub handler { my $r = shift; print STDERR $r-as_string(); return OK; } looks easy peasy - but 1) OK - Bareword OK not allowed