If you use numbers as indices, you should use an array!
Not necessarily. It makes no sense to use an array if the indices of its only elements are 2, 24, and 35000. For sparse arrays, hashes are a good choice.
As for his sort problem, there are ways around it by using a smarter sort function.
Dave
In reply to Re: Re: rebuilding a hash (more)
by davido
in thread rebuilding a hash (more)
by coldfingertips
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |