Hi All, I would like to print array1 with array2 as below ex:
output
-----------
abc-12 20/1
def-22 30/22
ghi-33 40/3
def-22 20/1
@array1 ="abc-12, def-22, ghi-33,abc-12,def-22";
@array2 ="20/1, 30/22, 40/3, 20/1";
i did try to map array1 to array2 elements, did'nt work.
%hash = map {$array1[$_] => $array2[$_] } (0..$#array1);
please advice, how can i print the corresponding elements of @array1 and
@array 2, as in the the output above.
Thanks
Sj
