My post wasn't addressing your OP, just the misinformation that you have to use doubled backslashes instead of slashes on Windows.
To address your problem, I think that you need to follow the advice of the other posters and add a die $!; clause to your open and come back and tell us what error you are getting when the open fails.
My guess (note: I do very little web server programming), is that the userid that your web server is running under is not allowed to access files/directories below your cgi-bin directory, and the error you are getting is "Permission denied".
There are two ways of addressing that problem.
I don't think that this is advisable as you are opening up your parts of your directory structure that should not be accessible from via the web server account. YOU PROBABLY SHOULD NOT DO THIS UNLESS YOU KNOW WHAT YOU ARE DOING OR TAKE ADVISE FROM SOMEONE WHO YOU TRUST DOES!
If you *really* cannot put the files you are trying to access within/below you cgi-in directory, and if you are using NTFS on your webserver, you might also consider creating a junction to map the directory you need to access to a position within your cgi-bin directory. Note: You will need to read and understand the link I gave you, particularly the bit about using ACLs you secure the link.
You'll also need to obtain the tools for doing this. I'd recommend you look at SysInternal's Junction utility, but make sure you understand the implications of doing this.
In reply to Re^4: File Open Issue
by BrowserUk
in thread File Open Issue
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |