
shawnhcorey
Enthusiast

Oct 14, 2009, 8:57 AM
Post #3 of 3
(415 views)
|
|
Re: [perllearner] Array of Hashes
[In reply to]
|
Can't Post
|
|
Hi, I have some piece of code below, @array = (1,2,3,{"perl"=>1,"unix"=>2}); now, I want to print the entire contents of array( including the values of the hash) How is it possible? Yes, use Data::Dumper. It's a standard module that comes with Perl. See `perldoc Data::Dumper` http://perldoc.perl.org/Data/Dumper.html __END__ I love Perl; it's the only language where you can bless your thingy. Perl documentation is available at perldoc.perl.org. The list of standard modules and pragmatics is available in perlmodlib. Get Markup Help. Please note the markup tag of "code".
|