in reply to Re: Print output file to a directoryin thread Print output file to a directory
mkdir "New Files"; chdir "New Files"; open O, ">NewTextFile.txt" or die "Can't: $!"; print O "Hi there\n"; [download]