in reply to How to pass array values as input to Hash keys
Your question is highly unclear. Please provide some code that shows what you are trying to do.
As a start, maybe the following does what you need?
my @list= ('key1', 'another_key', 'the third'); my %entries= ( 'key1' => 'number one', 'another_key' => '2', 'the third' => "three's a crowd", ); print $entries{ $list[ 2 ] };
|
|---|