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

Dr Manhattan has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks

How can I print a output file to a directory that I just created?

I have this, but I am struugling with the rest

mkdir "New Files"; open (OUTPUT, ">:utf8", "NewTextFile.txt") or die "Can't open"; print OUTPUT "Hello monks!/n";

But I want the output file to go to the directory that I just created? Any help would be appreciated, thanx