Okay, hopefully there is a simple answer to this...there usually is, right? I am saving data as .csv files (comma-separated) to be opened later in Excel. That part works. But when I change directories using chdir(), it DOES NOT work if I use "C:\". However, it DOES work if I use another drive that I am mapped to, such as "S:\". Why is that, and how can I fix it? Btw, when chdir() doesn't work, it still saves to the cgi-bin directory. Here's the test code...very short:
use CGI qw( :standard );
print "Opening file for output:\n";
open (FILE, ">file.csv") or die ("Can't find file.csv : $!");
print "Outputting to file.\n";
print (FILE "This,is,a,comma\nseparated,file\n");
close FILE or die "Can not close file.csv : $!";
Some days you are the bug; some days you are the windshield.