http://qs321.pair.com?node_id=1033638


in reply to Re: Print output file to a directory
in thread Print output file to a directory

Oh, oh, and you of course can 'cd' there if you like:
mkdir "New Files"; chdir "New Files"; open O, ">NewTextFile.txt" or die "Can't: $!"; print O "Hi there\n";