|
|
| more useful options | |
| PerlMonks |
Re: MySQL hashes with same keyby roboticus (Canon) |
| on Nov 16, 2012 at 03:30 UTC ( #1004116=note: print w/ replies, xml ) | Need Help?? |
|
You don't *have* to use arrays. But it really depends on the result(s) you want. If you want all three comments to be tied to the same key, you could read your data like:
You could have each hash key hold an array of comments, too. It all boils down to how you're actually going to work with the data. ...roboticus When your only tool is a hammer, all problems look like your thumb.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||