[dancer-users] Iteration of hash in template.
Alex Mestiashvili
mailatgoogl at gmail.com
Wed Sep 30 21:17:01 BST 2015
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 <gatorreina at gmail.com> wrote:
> Sorry but not familiar with Dumper.
>
> print "debug Dumper($pats_ref)\n";
>
> debug Dumper(HASH(0x9d5e1b8))
>
> _______________________________________________
> dancer-users mailing list
> dancer-users at dancer.pm
> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20150930/ec8fb6cd/attachment.html>
More information about the dancer-users
mailing list