in reply to How do I specify the drive/path when writing a file?
open(FILE,">c:/temp/file.txt") or die "Unable to open file.txt for wri +ting: $!"; print FILE "woohoo!\n"; close(FILE); [download]