On 1 June 2011 16:20, John Delacour <johndelac...@gmail.com> wrote: > > I have a script in cgi-bin which gathers information from the user and > replaces placeholders in a pre-written html page with the data collected via > a different html interface. Since the script needs to run from various > servers I don't want to use absolute URIs for the images, css file etc. and > I can't work out how to get relative pathnames to work. I'd be grateful for > the solution to this problem, which I imagine will appear very obvious once > I know the answer.
I'd imagine URI's rel method would work well for you in this situation. http://search.cpan.org/dist/URI/URI.pm HTH, Dp. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/