OK, here's the latest. I put in the CGI::CARP...and got my errors to the screen. On both the read and write to the file (example.txt) if the file exists and the permissions are sett correctly, for example.txt, everything works great. BUT two things I noticed:
1. When I ftp a file to the cgi-bin, for the first time, the permission setting are automatically set to 640, not 644 which is what I am used to, so I didn't check that till just now. Obviously, when changed to 644, the read and writing process works. 2. And here's the rub for the whole deal, I think (and my lack of programming skill). When I try to open the file, and it doesn't exist, I get the error of can't open a file it can't find. BUT I was under the impression that when I used the "<" or ">" or ">>" in an open command i.e.: open (DATA, "< example.txt"); that it would creat the file if it wasn't there (with the appropriate [default?] permissions...at least that's what happens on my other hosts. And if that is true, is there a place in the httpd.conf file to set the default permissions for newly created files/folders, as well as allowing new files to be created if not found? Why is it that on my other host (Hostcentric.com) that files are created when not found but on my Mac (10.2.6) they are not? Any ideas, anyone. As always, thanks for the help. Mark