in reply to Help me understand hashes
Often if you can't figure out how to drive a data structure in a clean way to achieve some end, it is because the data structure is not appropriate.
$row implies a contiguously numbered sequence starting at 0 or 1 to me. If that is the case then an array is much more appropriate than a hash.
In any case a code fragment with no data nor any explanation of what you are actually trying to achieve won't get you very good answers. Try presenting a small sample script with some sample data and telling us about the larger problem you are trying to solve.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help me understand hashes
by hallikpapa (Scribe) on Nov 16, 2007 at 17:54 UTC |