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";
PerlMonks, of course - how could you ask?
Games & puzzles
Arts & music
Whichever pays my bills
Results (271 votes). Check out past polls.