in reply to Filling a hash in loop

See page 14 of Modern Perl a loose description of how experienced and effective Perl 5 programmers work....You can learn this too.

And Tutorials the basic datatypes, three, Data Type: Hash

And Programming Language Examples Alike Cookbook http://pleac.sourceforge.net/pleac_perl/hashes.html

See also Perl Tutorial Hub