in reply to Using foreach to process a hash

Are you coming from php?

In Perl, variables are declared using my, and if you use the use strict pragma, all variables must be declared. Simply storing a variable in them does not declare them, like in php.