for brevity, I left out the error checking in the script. Specifically, we check to make sure that the file is there:
if(!(-f $DATA_PATH)) {
&error("Could not open the CSV data file containing center information, because of an error: $!");
}
We also check to see if the...
OK, tried it with an absolute path, same problem. I'm not clear as to what the question about "What is the status of your open statement if you check thr $! variable?" Perhaps a bit more code would help. Here's how I open the csv file, load it to the array, then grab the info I...
Before I started tweaking the script, it had a static address defined as $FILE_PATH = '../htdocs/document.html' and it worked. However, I'll try using the absolute path and see how it behaves.
Hello,
I have a fairly complicated perl cgi script that I inherited that I am trying to tweak. Specifically, I need to be able to designate a different file name to be opened depending on what value the script passes back. The filename is stored in one column in a two-dimensional array that is...
Hello,
I have a fairly complicated perl cgi script that I inherited that I am trying to tweak. Specifically, I need to be able to designate a different file name to be opened depending on what value the script passes back. The filename is stored in one column in a two-dimensional array that is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.