in reply to Re^3: Hash in Perl
in thread Hash in Perl
it showing Global symbol $href requires explicit package name.why this error.?my%hash = (Script => "Perl", script_1=>"Ruby", script_2=> "PHP"); for my$k (keys %{my$href}) { print "$k => ${$href}{$k}\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Hash in Perl
by Anonymous Monk on Jan 02, 2014 at 07:17 UTC |