I find print_r in PHP extremely useful, but wonder if there is anything remotely equivalent in Perl?
As usually with Perl, you might prefer alternative solutions to the venerable Data::Dumper:
And of course with the debugger, you can display any variable with the 'x' command. I particularly like the form 'x 2 $complex_structure
' where 2 (or any number) tells the debugger to display only 2 levels of nested data.