in reply to Hash pointing to multiple items
Not being exactly sure about the meaning of your code, I assume your hash variable is %Hash and that $ArtistSong1 and $ArtistSong2 are keys to your hash. The above code turns your "multiple entries" into a single string entry which you can latter decode thus:$Hash{$ArtistSong1} = '1,3,5'; $Hash{$ArtistSong2} = '2,4';
Please let me know more about what your trying to do and I can help you find the data structure you need. be a humble successormy @songnumbers = split ',',$Hash{$ArtistSong1};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Hash pointing to multiple items
by holli (Abbot) on Mar 23, 2005 at 20:50 UTC |