Either
merlyn's or
jZed's examples are fine for diagnostics. The original, however:
- won't truncate values as dump_results does
- provides more human-readable output than Data::Dumper's structures
But feel free to use whatever works for you. Mine was just more appropriate for my project.