in reply to Dynamically build a table
The most obvious data structure to store you data is an array of arrays (AoA), but depending on how you want to use your data afterwards, you may want to use an array of hashes or even a hash of arrays or a hash of hashes. I would advise against using a variable name such as @array, it is obvious from the @ sigil that it is an array, a variable name indicating the content of the array is more useful, for example @content_of_file or even something more specific.
|