Travis M. has asked for the wisdom of the Perl Monks concerning the following question:
However, on a different HTML page, I run into some problems. A form and submit button is automatically is generated by calling the following perl script:<option VALUE="./cgi-bin/test.pl?sys=WMD">
fine The output of the above is a javascript file that is called later in the html document. That js file creates a form tag with a submit button whose action is yet another PERL script, as follows:<script src="./cgi-bin/check.pl"></script>
It's apparent the script begins to do it's thing, however the problem results when a "open" function is called within the script (as listed):<form style='margin-bottom:0; margin-top:0;' ACTION = './cgi-bin/upda +te.pl' TARGET = 'FRAME2'> <input type='submit' value='Update Page'></form>
(relative to the perl script being called, the file is up one directory, over to the 'update' directory, then down to the 'update.txt' file.)open (UPDATE, "../update/update.txt") or die "Cannot open update.txt";
ROOT_NODE html files cgi_bin/ all .pl and .cgi files are here update/ update.txt is here jsfiles/ all javascript files are here etc/ other files
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: problems with relative paths when using open and opendir functions
by Zaxo (Archbishop) on Jan 19, 2005 at 05:31 UTC | |
|
Re: problems with relative paths when using open and opendir functions
by Tanktalus (Canon) on Jan 19, 2005 at 05:25 UTC | |
|
Re: problems with relative paths when using open and opendir functions
by larryp (Deacon) on Jan 19, 2005 at 18:08 UTC |