Thanks everyone for the great suggestions. I will look at perhaps using JSON or XML instead - not sure why that never occurred to me!
Ken, simply making it as a hash is another interesting idea - I'll have to ultimately see what's easiest for users.
Thanks so much all!