2007/8/24, Perrin Harkins <[EMAIL PROTECTED]>: > On 8/21/07, Jeff Pang <[EMAIL PROTECTED]> wrote: > > >PerlHandler Package::Name > > > > > >instead of: > > > > > >PerlHandler Package::Name->handler > > > > > > > So on the first case,we need to write the handler as > > sub handler { my $r = shift; ...} > > because Apache may call the function directly as Package::Name::handler. > > > > on the second case,we write handler as, > > sub handler { my $class = shift; my $r = shift; ... } > > because '->' is a method calling. > > For method handlers, you also have to declare it differently. > > In mod_perl 1: > sub handler ($$) { >
why it need prototype in mp1's method handler?