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.
In reply to Re^3: Pass an array reference or array indices to a subroutine?
by chromatic
in thread Pass an array reference or array indices to a subroutine?
by umasuresh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |