[Catalyst] how to set CATALYST_DEBUG
Tomas Doran
bobtfish at bobtfish.net
Sun Jul 12 00:36:07 GMT 2009
On 30 Jun 2009, at 02:59, Malloy wrote:
> I can get $ENV{CATALYST_DEBUG} in my templates. But can't get it in
> lib/{App}.pm.
>
> #Use of uninitialized value $ENV{"CATALYST_DEBUG"} in print at /
> path/lib/{app}.pm line 38.
>
> And Catalyst is up to date.
>
> cpan> install Catalyst
> Catalyst is up to date (5.80005).
Ah, you're trying to read the actual environment variable.. Don't do
that! Check $c->debug instead..
If you _really_ need things from the environment, they're in $c-
>engine->env
Cheers
t0m
More information about the Catalyst
mailing list