Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The second thought was to use a Hash with the ID as the key. Obviously, for the hash I would only be using the number of entries that I have IDs.@Social[$id_1][$id_2]
Are there downsides for using a hash I am not considering? Or should I be looking at a different data structure? Thanks. -dm%Social{$id_1}{id_2}
Code tags added by GrandFather
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Array vs. Hash
by BrowserUk (Patriarch) on Feb 24, 2012 at 20:15 UTC | |
by Anonymous Monk on Feb 25, 2012 at 02:08 UTC | |
by BrowserUk (Patriarch) on Feb 25, 2012 at 02:20 UTC | |
|
Re: Array vs. Hash
by nemesdani (Friar) on Feb 24, 2012 at 19:48 UTC | |
|
Re: Array vs. Hash
by CountZero (Bishop) on Feb 24, 2012 at 20:06 UTC |