$DNA = ; chomp $DNA; unless(open(DNAFILE, $DNA)){ print "File not found\n\n"; } @DNA = ; $DNA = join('',@DNA); $DNA =~ s/\s//g;