open (FILE, "<$file") or die $!; @file = ; foreach $row (@file) { ## do something with $row }