in reply to Using variable names from an array
What you should try instead is a hash-of-arrays. See the perldsc documentation for some details and examples.
$data{city}[2]="Albany"; etc... [download]