Here is a simple %list i have written
The output is
But I want to print it like this i.e vertically
Regards
Code:
@array="z,b,c,d,e,f";
@array2="10,2,3,4,5,6";
%list=(
@array => @array2);
@Allkeys =sort(keys(%list));
foreach $Thekey (@Allkeys)
{print "$Thekey\n"}
@Allval =sort(values(%list));
{print "@Allval \n"};
The output is
z,b,c,d,e,f
10,2,3,4,5,6
But I want to print it like this i.e vertically
Please guide me how to do this.z,10
b,2
c,3
d,4
e,5
f,6
Regards