in reply to Pass an array reference or array indices to a subroutine?
But I'm curious about your statement Array dereferencing can be quite expensive. What makes you think that? Dereferencing is just following a pointer. Just doing print $foo means you have to follow a couple of pointers just to get the string value. In the grand scheme of things, array dereferencing is just peanuts.
|
|---|