Think about Loose Coupling | |
PerlMonks |
Learn Data Structures easyby l.frankline (Hermit) |
on Feb 06, 2006 at 06:26 UTC ( [id://528164]=perlmeditation: print w/replies, xml ) | Need Help?? |
Data StructuresThe Data Structures are of a bit complex to understand but it very powerful in storing huge records. Have a look at the data structures explained very easy. Arrays of ArraysThere are many kinds of nested data structures. The simplest kind to build is an array of arrays, also called a two-dimensional array or a matrix.
Arrays of HashesAn array of hashes is useful when you have a bunch of records that you'd like to access sequentially, and each record itself contains key/value pairs.
Hashes of ArraysUse a hash of arrays when you want to look up each array by a particular string rather than merely by an index number.
Hashes of HashesA multidimensional hash is the most flexible of Perl's nested structures. It's like building up a record that itself contains other records.
Moved from Q & A to Meditations by Arunbear
Back to
Meditations
|
|