I'm not sure I can understand what you want either, but here's an advise. While CGI Scripting, ALWAYS use the relative path and NEVER the absolute path when pointing to a file/html/image etc.
So, you would code cgi-bin/script.pl from a HTML page in /apache/htdocs rather than /apache/cgi-bin/script.pl
Rupesh.
Comment on Re: Problems when using HTML editor on HTML::Template's