in reply to How do I specify the drive/path when writing a file?

Just specify the drive/path when you're creating the data file. For example:
open(FILE,">c:/temp/file.txt") or die "Unable to open file.txt for wri +ting: $!"; print FILE "woohoo!\n"; close(FILE);
Hope that helps,
Shendal