in reply to dereference an array

See tye's References Quick Reference. Basically, if $arr is an array reference, @$arr gives you the referenced array and $arr->[42] gives you an element of it.