in reply to Getting an Array Reference Into an Array
I want to manipulate the array in $myHash{"tres"}, and in order to prevent deferencing it all the time, I'll copy it into an actual arrayPersonally, i prefer to just copy the reference.
This also avoids copying the arrays. Dereferencing is a tiny bit slower than using an alias, but my guess is that it just won't be noticable, and using local() unless you really have to is just ugly IMO.my $aref = $myHash{"tres"}; $aref->[0] = 'bla'; # etc.
|
|---|