in reply to 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^2: Hash in Perl
by Lennotoecom (Pilgrim) on Jan 02, 2014 at 07:20 UTC | |
by rammohan (Acolyte) on Jan 02, 2014 at 07:26 UTC | |
by Lennotoecom (Pilgrim) on Jan 02, 2014 at 07:29 UTC |