in reply to `
To see what your hash looks like, you should use Data::Dumper like this: print Dumper \%PG; (you need to use the module first, of course).
To see what's wrong with your code :
because you use variables that were never declared, put a value in a hash that you then never use, mess up scopes, and other mistakes that strict and warnings should have told you about.use strict; use warnings;
In Section
Seekers of Perl Wisdom