Re: Is there function to separate print associative array
- From: orasnita@xxxxxxxxx
- Date: Sun, 1 Mar 2009 13:04:13 +0200
From: "prasath_linux" <prasath.tvs@xxxxxxxxx>
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
.
- Follow-Ups:
- Re: Is there function to separate print associative array
- From: Telemachus
- Re: Is there function to separate print associative array
- Prev by Date: validate input data from file.
- Next by Date: Re: Is there any function like perlinfo()
- Previous by thread: validate input data from file.
- Next by thread: Re: Is there function to separate print associative array
- Index(es):
Relevant Pages
|