Update perl-hash.tt

I have removed the tabs and replaced it with spaces. I have also added comments for the code.