[Catalyst] what is the type of $context?

Carl Franks fireartist at gmail.com
Fri Jun 9 11:15:28 CEST 2006


On 09/06/06, Daniel McBrearty <danielmcbrearty at gmail.com> wrote:
> Is it an object in it's own right, or just a hash?

As you can call methods on it, that means it's a blessed object.
If you need to find what class it's blessed into, do:
    print ref $c;

You shouldn't need to know whether it's implemented as a hash or not;
if you need to use it to store data, use $c->stash

Carl



More information about the Catalyst mailing list