in reply to Re^2: What defines the choice of a Hash or an Array?
in thread What defines the choice of a Hash or an Array?
I do know the difference, but you could use an array, as it's ordered, and, for the same thing, you could just use a hash and then sort it.Say you live a city next to an airport, and you want to visit a friend who lives 20 miles away at the other end of city also next to an airport, do you fly or do you drive?
Use a hash when it benefits you to do so, not just because you can.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: What defines the choice of a Hash or an Array?
by ghenry (Vicar) on Mar 31, 2005 at 09:03 UTC |