Date: Fri, 29 Jun 2001 14:27:09 +0800 From: "Just in" Subject: Naming a hash Message-Id: <9hh740$67t@news.or.intel.com> Dear group, Suppose I was in a loop, and I wanted to push some values into a hash, but I wanted the hash to have a different name for each iteration of the loop. i.e how can I do this:- for ($a = 0; $a <= $#SomeArray; $a++) { # do something to get data here $NewHash$a{$Var} = $Val; } Obviously this wont work, and variations of the theme (that I have attempted), dont work either. I would really appreciate if someone were to enlighten me. Thanks Just (I dont know nuts) in