advanced code snippet search
noah on 07/03/07
table object array print pattern dump iterator hash 2001 lookup
07/03/07 11:15pm07/03/07 11:08pm
hashes in Perl can be so elegant
#dump a hashwhile (my ($key, $value) = each %target_list) { print "$key=>$value \n"; } #dump an arrayfor (@list){print "$_\n";}
Report this snippet Tweet
Data::Dumper module can be used for dumping contents of pretty complexes hashes/arrays.
Comment:
You need to login to post a comment.
Data::Dumper module can be used for dumping contents of pretty complexes hashes/arrays.