in reply to Hash in Perl

What you call "my hash" is not perl code , so, see perlintro