in reply to [RESOLVED] Migrating mod_perl app to mod_perl 2

Quick suggestion (haven't got time to fully research - sorry). If your handler is not being called as a class method, maybe you should change the declaration to look like this:

sub handler : method { my($class, $req) = @_; ... }

I vaguely recall that the method vs function distinction changed from being declared by a prototype to an attribute some time in the mod_perl 1 days.

Replies are listed 'Best First'.
Re^2: Migrating mod_perl app to mod_perl 2
by cLive ;-) (Prior) on Nov 05, 2014 at 02:44 UTC

    Thanks - that does indeed bring the class back into @_

    Now i just need to work out what's up with the tied *STDOUT (and I've been making progress - I'll update this when I get to the solution so that there's a public reference for others later).