From: "prasath_linux" <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to