* 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
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/