sub checkFile() { my @file = <$filehandle>; print( "<BR><BR>@file<BR><BR>" ); foreach my $line ( @file ) { chomp( $line ); if( $line =~ /([^ACGTacgt])/ ) { next; } else { my @cols = split( /\s/, $line ); print( "@cols" ); } } }