dump the contents of a data structure

#dump a hash
while (my ($key, $value) = each %target_list)
{
print "$key=>$value
";
}

#dump an array
for (@list){print "$_
";}

source

Leave a Reply