in reply to Pass an array reference or array indices to a subroutine?
First, you're not passing indexes, you're passing reference to the indexes. That's surely a bug.
Secondly, apples and oranges. If you need the indexes, why aren't you passing them using "method 1"? If you don't need the indexes, why are you passing them using "method 2"?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Pass an array reference or array indices to a subroutine?
by umasuresh (Hermit) on Feb 24, 2011 at 21:01 UTC | |
by chromatic (Archbishop) on Feb 24, 2011 at 21:38 UTC | |
by ikegami (Patriarch) on Feb 24, 2011 at 22:13 UTC | |
by ikegami (Patriarch) on Feb 24, 2011 at 21:06 UTC |