On Mon, 2004-07-26 at 14:52, Stas Bekman wrote:
All handlers require a return status. You can read more about this here: http://perl.apache.org/docs/2.0/user/handlers/intro.html#What_are_Handlers_ http://perl.apache.org/docs/2.0/user/handlers/intro.html#Handler_Return_Values
In Perl if you don't have an explicit return() call in a subroutine, the result of the last expression is used as a return value. so your other subs had happened to work if they were returning an Apache::OK (whose int value is 0).
That makes complete sense (Thank You), but I'm still a bit unclear as to
why another mp2 script, ending in a print statement, does not exhibit
this-
Because your print call has returned a sensible value, which happened to be something that Apache was happy with. Check what was this value
before:
print "fpp"; }
after:
my $ret = print "fpp"; warn "print returned $ret\n"; return Apache::OK; }
although I suppose I should just put in a proper return value and
move on.
well, it's important to understand why that worked too.
-- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
-- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html