I have just started with Perl scripting, while making an array and and fetching it from the hash variable. I am getting an awkward output.
Code is here:
%name= ( "xyz",1 ,"is",2, "my",3,"name",4);
%copy=%name;
$size=%name;
print " your rank is : $copy{'xyz'}";
print " \n";
print " the size of the array is : $size";
output is coming as :
your rank is : 1
the size of the array is : 3/8
why is the size of the array is of 3/8?