in reply to list values of specific hash keys

Another guess, is @value_table empty when you try to use it later? If so, you need to declare it outside of your foreach{} block. As in

my @value_table; foreach my $key (@keys){ my $value = $hash{$key}; push @value_table, $value; } #use @value_table for whatever


Be Appropriate && Follow Your Curiosity