C
Colvin
I'm using Perl to write a CGI script, and for the most part it works.
My directory structure looks like the following:
/webfolder/*.html
/webfolder/images/*.jpeg
/webfolder/js/*.js
/webfolder/cgi-bin/*.pl
My current design loads the html files into scalar variables, performs
some regex manipulation, and then outputs the (modified) scalar to the
browser. The problem is that all of the references to images/*.jpeg are
getting changed to cgi-bin/images/*.jpeg I tried inserting a chdir ".."
into the Perl scripts, but that only changed the cwd of the script and
not the cwd of the html. What's the best way to solve this?
Thank you,
Alec Colvin
My directory structure looks like the following:
/webfolder/*.html
/webfolder/images/*.jpeg
/webfolder/js/*.js
/webfolder/cgi-bin/*.pl
My current design loads the html files into scalar variables, performs
some regex manipulation, and then outputs the (modified) scalar to the
browser. The problem is that all of the references to images/*.jpeg are
getting changed to cgi-bin/images/*.jpeg I tried inserting a chdir ".."
into the Perl scripts, but that only changed the cwd of the script and
not the cwd of the html. What's the best way to solve this?
Thank you,
Alec Colvin