Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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 drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2022-10-06 01:51 GMT
Find Nodes?
    Voting Booth?
    My preferred way to holiday/vacation is:

    Results (26 votes). Check out past polls.