You can go over the hash using for loop like

for ( keys %hash ){
      print $_ => $hash{$_}. "\n";
}
 On Jun 13, 2015 1:40 PM, "rakesh sharma" <rakeshsharm...@hotmail.com>
wrote:

> Hi
>
> I am printing a hash but I tried to concatenate the new line operator and
> I am getting 2/8 as output;
>
> print %hash."\n";
>
> output is 2/8. I am not able to make the output. 2 could be the items in
> the hash, which in my case was 2.
> Any inputs?
>
> thanks
> rakesh
>

Reply via email to