[Catalyst] Any plugins to replicate mod_perl ENV values?
Jonathan Rockway
jon at jrock.us
Mon Feb 11 20:57:14 GMT 2008
* On Mon, Feb 11 2008, Brasten Sager wrote:
> I'm converting a large application from mod_perl to Catalyst. The
> ultimate goal is to replace all ENV usages with the appropriate
> Catalyst calls, but that's not a realistic goal for our first pass.
>
> Are there any plugins that populates ENV similarly to how mod_perl did?
No, but I think the way to go is something like:
package MyApp;
sub execute {
my $c = shift;
local $ENV{FOO} = $c->foo;
...
$c->next::method(@_);
}
Maybe.
Regards,
Jonathan Rockway
More information about the Catalyst
mailing list