|Do you know where your variables are?|
Re: transforming XY data to X and Multiple Y column data?by Kanji (Parson)
|on Sep 26, 2010 at 20:24 UTC||Need Help??|
You could try a more complex data structure.
A something of somethings of arrays should do the trick, such as an array of arrays of arrays:-
...or an array of hashes of arrays:-
...or even a hash of hashes of arrays:-
Without knowing more about your input data, it's hard to say which of those will best suit your needs (or if something else is more appropriate or possible), but the of arrays part will at least do away with the issue of duplicates.
Edit: Fixed typos in examples.