Just look it up on metacpan.org, it is very useful for debugging.

with debug you can log something in the log file,
I usually start a dancer app with plackup  -a /bin/app.(psgi|pl)
and monitor what is happening in the output.

if you prefer to use print, then you need to write it this way:

print Dumper($pats_ref);

thought print will output  to the browser which is not very optimal.

Also you can use Dumper with Template::Toolkit
http://www.template-toolkit.org/docs/modules/Template/Plugin/Dumper.html





On Wed, Sep 30, 2015 at 9:53 PM, Richard Reina <[email protected]> wrote:

> Sorry but not familiar with Dumper.
>
> print "debug Dumper($pats_ref)\n";
>
> debug Dumper(HASH(0x9d5e1b8))
>
> _______________________________________________
> dancer-users mailing list
> [email protected]
> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
>
>
_______________________________________________
dancer-users mailing list
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users

Reply via email to