Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Dynamically build a table

by Laurent_R (Canon)
on Mar 11, 2014 at 18:01 UTC ( [id://1077878]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1077878]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-03-29 13:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found