[Catalyst] Re: selectively using the wrapper

Aristotle Pagaltzis pagaltzis at gmx.de
Mon Sep 21 04:49:58 GMT 2009


* Todd Lyons <tlyons at ivenue.com> [2009-09-21 05:45]:
> On Wed, Sep 16, 2009 at 7:20 AM, Ascii King <tech at swattermatter.com> wrote:
> > Thanks, Denny. that's perfect. Just to complete the question
> > for the archives, you would call the no_wrapper like this:
> > $c->stash->{no_wrapper => 1};
>
> Is this a typo?  Should it be () instead of {} ?

Yes. It should be either of the following:

    $c->stash->{no_wrapper} = 1;
    $c->stash( no_wrapper => 1 );

I always prefer the latter.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>



More information about the Catalyst mailing list