I am new to perl. I need to understand how can I map one array (as keys) to another (as values) to result in a hash using foreach loop:
@one = ("A", "B", "C");
@two = ("a", "b", "c");
I wrote the following code but it does not work when I slice the hash??
%hash;
foreach $i (one) {
print $i, "=>" , $ii = shift @two, "\n"
}