open (FILEHANDLE, ">yourFile.txt") or die "Cannot open hello.txt";print FILEHANDLE "Hello!";close (FILEHANDLE);