in reply to Re^2: Hash in Perl
in thread Hash in Perl

Ya but in perldoc showing like
for my $key (keys %{$href}) { print "$key => ${$href}{$key}\n";
this also please see and tell me http://perldoc.perl.org/perlreftut.html

Replies are listed 'Best First'.
Re^4: Hash in Perl
by Lennotoecom (Pilgrim) on Jan 02, 2014 at 07:29 UTC
    my %hash = (Script => "Perl", script_1=>"Ruby", script_2=> "PHP"); $href = \%hash; for my $k (keys %{$href}) { print "$k => ${$href}{$k}\n"; }