AhmedABdo has asked for the wisdom of the Perl Monks concerning the following question:
Hi dear all
Assuming I have this array and hash.
I want to search thought the hash values using the array elements as values and then print the hash keys for each searched value from the array in a new array.My @array = qw(world today is nice); my %hash = (0 => "Hello", 1=> "world" , 2=> "today" , 3=> "is" , 4=> " +nice" );
|
|---|