$hash{$id} = [1,2,3]; my @temp = (1,2,3); $hash{$id} = \@temp; #### @{$hash{$id}}; # for the whole array $hash{$id}->[0]; # for the first element