insert a line just above the "for" loop: my %in; ...this declares a hash variable named "in". lookup perlvar section of perl documentation to learn about the basic variable types in perl. keep using strict, especially that you're newbie. it will make you always declare variables. so if you mis-spell a variable name when accessing it, perl won't create it for you automatically as it does without "use strict".