pjofnj has asked for the wisdom of the Perl Monks concerning the following question:
Is this possible? ($ArtistSong, and 1,2,3, etc will be derived from the DB). If it is, can someone please tell me how do I go above doing this? My final goal is, I will be searching based on ArtistSong, if a certain value exists there or not? so Example I may say, for ArtistSong1, does 1 exist? If yes, do something, else do something else. I do not know how many ArtistSongs will I have nor do I know how many values will it refer to.Hash($ArtistSong1)->[1,3,5] Hash($ArtistSong2)->[2,4]
20050324 Edit by ysth: code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hash pointing to multiple items
by RazorbladeBidet (Friar) on Mar 23, 2005 at 18:50 UTC | |
|
Re: Hash pointing to multiple items
by atcroft (Abbot) on Mar 23, 2005 at 19:03 UTC | |
by pjofnj (Initiate) on Mar 23, 2005 at 19:15 UTC | |
|
Re: Hash pointing to multiple items
by inq123 (Sexton) on Mar 23, 2005 at 20:04 UTC | |
|
Re: Hash pointing to multiple items
by successor1221955 (Acolyte) on Mar 23, 2005 at 19:52 UTC | |
by holli (Abbot) on Mar 23, 2005 at 20:50 UTC |