in reply to Re^4: hash & arrays
in thread hash & arrays
Johnmy %hash = []; #explicitly create a hash of arrays structure for clari +ty #push your items into the array - this will create the hash $userid if + it dosent already exist push @{$hash{$userid}}, ($title, $adjst, $adjst2, @{$linex}) #@{$linex) says i am a list #then to get a particular emement print OUTPUT $hash{$userid}[0]; #prints $title for that user
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: hash & arrays
by fullermd (Vicar) on Nov 05, 2009 at 13:28 UTC | |
by Spooky (Beadle) on Nov 05, 2009 at 16:56 UTC | |
|
Re^6: hash & arrays
by Spooky (Beadle) on Nov 05, 2009 at 12:47 UTC |