%hash = 100;
is the same as
%hash = ( 100 => undef );
You want
keys(%hash) = 100;
In reply to Re^2: Need Help in Understanding Some Code - Map and Scalar Questions
by ikegami
in thread Need Help in Understanding Some Code - Map and Scalar Questions
by Dru
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |