in reply to Re: Use Hash? Array? Still confused after all these years.
in thread Use Hash? Array? Still confused after all these years.
Well, hashes aren't exactly the same thing. Arrays are ordered, and hashes aren't. Many people still wonder why keys() doesn't return the keys in the order they added them (or even the same order all the time), and it will always be something I have to emphasize in a beginning Perl class.
I don't like to say that arrays are indexed by non-negative integers either (and I've always wondered why people use "integer" just to ignore half of them). We can use the negative indices to count from the end as long (as we have enough entries to count).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Use Hash? Array? Still confused after all these years.
by exussum0 (Vicar) on Jul 21, 2005 at 22:05 UTC | |
by brian_d_foy (Abbot) on Jul 22, 2005 at 03:16 UTC | |
by exussum0 (Vicar) on Jul 22, 2005 at 11:41 UTC | |
by willyyam (Priest) on Jul 22, 2005 at 12:58 UTC | |
by benizi (Hermit) on Jul 22, 2005 at 14:29 UTC | |
by Anonymous Monk on Jul 22, 2005 at 14:16 UTC | |
|
Re^3: Use Hash? Array? Still confused after all these years.
by Anonymous Monk on Jul 22, 2005 at 14:12 UTC |