in reply to Re^4: Hash in Perl
in thread Hash in Perl

it showing Global symbol $href requires explicit package name.why this error.?

because you're copy/pasting the wrong things , without understanding what they mean

Why do you introduce $href? Think about that

Then see the documentation for keys function, how is it different from your example?

Try keys %hash