in reply to Re^4: Listing of files using glob
in thread Listing of files using glob

The handle does not create the filename. Your program does.
open(FILEOUT, ">$dir/$nameWithoutFastaSign/$nameWithoutFastaSign.fasta +");
Remove the space from $nameWithoutFastaSign.