Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Migrating mod_perl app to mod_perl 2

by grantm (Parson)
on Nov 03, 2014 at 20:49 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-03-19 09:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found