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 stored in a .csv file.
I am trying to refence that filename in order to designate the html filepath name that should be opened. I am using the following script:
$FILE_PATH = "../htdocs/@fields[12]";
I know that this populates correctly because I can print the value and it returns "../htdocs/document.html" But when I try to actually use it to open ../htdocs/document.html, I get a "page cannot be displayed error"
Any ideas? I've tried any number of variations on this theme...I'm really at a loss.
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 stored in a .csv file.
I am trying to refence that filename in order to designate the html filepath name that should be opened. I am using the following script:
$FILE_PATH = "../htdocs/@fields[12]";
I know that this populates correctly because I can print the value and it returns "../htdocs/document.html" But when I try to actually use it to open ../htdocs/document.html, I get a "page cannot be displayed error"
Any ideas? I've tried any number of variations on this theme...I'm really at a loss.