PHP knows print_r -- which prints a data structure hierarchically, and is very useful for debugging.
e.g.
    echo "Variable a is " . print_r( $a, true ) . "\n";

Is there something similarly easy in Perl?

It appears that Data::Dumper may be of help, but I have not been able to figure out how to make the output reasonably compact (I don't want to see the pseudo-hash index fields etc.)



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to