in reply to Re: Need Help in Understanding Some Code - Map and Scalar Questions
in thread Need Help in Understanding Some Code - Map and Scalar Questions

%hash = 100;

is the same as

%hash = ( 100 => undef );

You want

keys(%hash) = 100;

keys