Problems? Is your data what you think it is? | |
PerlMonks |
Re: Use Hash? Array? Still confused after all these years.by techcode (Hermit) |
on Jul 22, 2005 at 23:13 UTC ( [id://477380]=note: print w/replies, xml ) | Need Help?? |
Everyone posted their own views of how and when to use hashes. Problem is that it's really hard to explain in plain words. I believe it's hard because it either clicks in your head or not. Well at least it's case with me - once I was introduced to hashes I simply got them as granted. As someone pointed out - you use hashes for storing any data that has names. Such as database tables and forms. Sometimes it's also good to use hash as a parameter for some function/method (often referred as PARAMHASH). In cases when you have more than few parameters.
Anyway if I understood you - I would use following: So it ends up with something like:
In Section
Seekers of Perl Wisdom
|
|