I believe this question is really simple. I am have a Perl CGI file that I read a page through and I need to be able to then print out the html webpage. I am in essence creating an html frame without frames. So when you click on a link it passes you through this page and adds some stuff at the top. I am fine when the page is part of my website and everything is local because I can read the file into an array and then print it out. The problem is that a couple of the links are on another site so they come in as the full path with http://etc
I need to have a way of knowing the url to just print out the html. Is there a command or a simple way of doing this.