in reply to Regarding Hashes of Arrays

You probably want hashes of references of arrays rather than arrays themselves. I'm not sure you can do hashs of arrays directly. But the following will work for you.
$hash{$id} = [1,2,3]; my @temp = (1,2,3); $hash{$id} = \@temp;
You can then access them as
@{$hash{$id}}; # for the whole array $hash{$id}->[0]; # for the first element