Perl 5 problem. I just installed Perl 5.8.8 Build 20 on an new Windows 2003 server. I am for some reason uanable to print the contents of a file to a web browser. However, if I run the same script at the command line, I see all the correct output from the file there. Why can I not get a handle on the any lines from the file and print them to the browser even using the below simple code.
print "Content-type: text/html\n\n";
open(FILES, "test.dat") or warn "no file exists: $!";
$record = <FILES>;