in reply to dynamically creating the name of a hash key-name

If I remember correctly, keys are always treated like strings and can't be considered an integer, etc. With that in mind, just think of what you could do to a string and you should be all right. For example:

for($I=0;$I<3;$I++){ $foo{"word".$I}= "This is word $I\n"; }

You could then reference foo with $foo{word0}, $foo{word1}, and $foo{word2}