in reply to How do I access an array for which I only have a reference?
foreach my $i ( 0 .. $#$array ) { # dereference the element print $array->[$i], "\n"; } [download]
Originally posted as a Categorized Answer.