I find print_r in PHP extremely useful, but wonder if there is anything remotely equivalent in Perl?
An alternative to Data::Dumper that does not produce valid Perl code but instead a more skimmable format (same as the x
command of the Perl debugger) is Dumpvalue. It also consumes a lot less memory.
As well, there is Data::Dump::Streamer, which is more accurate in various edge and corner cases than Data::Dumper is.