open(FH, "$datfile") || die "Can't open $datfile!"; while(my $line=) { chomp($line); push(@list, $line); }