From: "prasath_linux" <prasath....@gmail.com>
Hi,

Is there any possible function to print the associative array.  We
have print_r() function in PHP to display the associative array.
Likwise is there any function in perl to print associative array.

Thanks in advance.



You can use:

use Data::Dump qw(pp);

my %hash = (a => 1, b => 2);

print pp(\%hash);

Octavian


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to