Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Migrating mod_perl app to mod_perl 2

by grantm (Parson)
on Nov 03, 2014 at 20:49 UTC ( #1105943=note: print w/replies, xml ) Need Help??

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).

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1105943]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2022-12-04 22:26 GMT
Find Nodes?
    Voting Booth?

    No recent polls found