How do you dump "param"

256 views
Skip to first unread message

raptor

unread,
Apr 19, 2012, 5:31:22 PM4/19/12
to Mojolicious
Trying to dump "param" with :

Dumper($self->param)

OR

=% dumper param

doesn't seem to work. The only thing I get is the keys.
"params" doesn't seem to be defined.

How do you dump them ?
thanx

Mirko Westermeier

unread,
Apr 19, 2012, 6:26:30 PM4/19/12
to mojol...@googlegroups.com
Hi!

> Trying to dump "param" with :
>
> Dumper($self->param)
>
> OR
>
> =% dumper param
>
> doesn't seem to work.

This should help: <https://gist.github.com/2424621>

memowe/Mirko :-)

--
Schmeddingstrasse 123 g, 48149 Muenster, <http://www.memowe.de/>
E-Mail: <ma...@memowe.de>, OpenPGP-Key-ID: 0x730E195D
Key fingerprint: 55A8 9646 9B58 60AC B5BC 9661 FDD4 93C0 730E 195D
E-Mails von mir sind signiert. Unsignierte E-Mails sind nicht von mir.

PGP.sig

raptor

unread,
Apr 19, 2012, 9:22:03 PM4/19/12
to Mojolicious
thank you

On Apr 19, 6:26 pm, Mirko Westermeier <m...@memowe.de> wrote:
> Hi!
>
> > Trying to dump "param" with :
>
> > Dumper($self->param)
>
> > OR
>
> > =% dumper param
>
> > doesn't seem to work.
>
> This should help: <https://gist.github.com/2424621>
>
> memowe/Mirko :-)
>
> --
> Schmeddingstrasse 123 g, 48149 Muenster, <http://www.memowe.de/>
> E-Mail: <m...@memowe.de>, OpenPGP-Key-ID: 0x730E195D
> Key fingerprint: 55A8 9646 9B58 60AC B5BC  9661 FDD4 93C0 730E 195D
> E-Mails von mir sind signiert. Unsignierte E-Mails sind nicht von mir.
>
>  PGP.sig
> < 1KViewDownload

xpen

unread,
Apr 19, 2012, 10:58:22 PM4/19/12
to mojol...@googlegroups.com
actually, you can dumper your vars to a file using Data::Dumper

or

you can use app->dumper to do that


--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To post to this group, send email to mojol...@googlegroups.com.
To unsubscribe from this group, send email to mojolicious...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mojolicious?hl=en.




--
Sincerely,
Pengfei Xue

Mirko Westermeier

unread,
Apr 20, 2012, 4:55:22 AM4/20/12
to mojol...@googlegroups.com
Hi! :-)

xpen wrote:

> actually, you can dumper your vars to a file using Data::Dumper
>
> or
>
> you can use app->dumper to do that

Yes, you can (the dumper helper actually uses Data::Dumper).

But I'm sure "raptor" knows that already. He wanted to know how to access params from templates.

Mirko/memowe

--
Schmeddingstrasse 123 g, 48149 Muenster, <http://www.memowe.de/>

E-Mail: <ma...@memowe.de>, OpenPGP-Key-ID: 0x730E195D

PGP.sig
Reply all
Reply to author
Forward
0 new messages