in reply to Using variable names from an array

To expand on what lhoward pointed out, here's some actual code that you can use (untested):
my %data; while (<DATA>) { ($data{'name'}[$.], $data{'address'}[$.], $data{'city'}[$.]) = split /,/,$_; }
Then, if you want the address from the third record:
print $data{'address'}[3];
A couple of other points to note: Cheers,
Ovid