May be my question should have been which one of these is faster: dereferencing an array or a scalar.
There's no difference.
And that shouldn't be the question at all. There's no point of comparing things that aren't equivalent.
In reply to Re^3: Pass an array reference or array indices to a subroutine?
by ikegami
in thread Pass an array reference or array indices to a subroutine?
by umasuresh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |