in reply to Re^2: Pass an array reference or array indices to a subroutine?
in thread Pass an array reference or array indices to a subroutine?
May be my question should have been which one of these is faster: dereferencing an array or a scalar.
They're about the same; almost irrelevant in any real program.
Accessing a lexical is faster than accessing a global, though the speed difference there is also almost always irrelevant.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Pass an array reference or array indices to a subroutine?
by ikegami (Patriarch) on Feb 24, 2011 at 22:13 UTC |