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
In reply to Re^5: hash & arrays
by colwellj
in thread hash & arrays
by Spooky
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |