in reply to More efficient dereferencing of a subroutine return

Don't make a copy of the array to another array. no "my @ARRAY=@$temp_scalar;" just do $temp_scalar->[5].