Add,
use strict;then run your code ?
"my" variable %hash masks earlier declaration in same scope at testt.pl line 14.
syntax error at testt.pl line 12, near "while{"
Can't use "my $a" in sort comparison at testt.pl line 17.
Update:
Hashes are not ordered, but as usual, CPAN offers a solution: Tie::IxHash
In reply to Re: how to print key and value of hash as it is
by vinoth.ree
in thread how to print key and value of hash as it is
by lakshmikant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |