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);