in reply to problem with array

Your code reassigns the entire contents of the array on each loop... if you want to collect it all inone large array, try this instead:
while(<FILE>){ chomp; push @data, split(/,/,$_); }
...If you want individual arrays, you'll have to get fancier:
my @data = (); while(<FILE>){ chomp; push @data, [ split(/,/,$_) ]; }
This will make an array of arrays, accessible as such:
print data[0][0]; # prints the first element of the first line print data[4][3]; # prints the fifth element of the fourth line


Hot Pastrami