I have a webpage which you can access from two different sites - let's say A and B. The content of the web page is always the same but there are two differencies depending of the origing web page:1. The window title, 2. the url in the adress bar in the browser window. My task is to do something with the webpage (in which my perl script is running) but only in the case the user comes from web page A. So this is why I need to get hold of either the url or the window title. I have tried to read the url using the different $ENV variables like QUERY_STRING, REQUEST_URI and HTTP_REFERER but these variables did not return anything. That's why my second attempt to solve this task is to get hold of the window title.
/Emmalo
I don't think perl can get the title of a webpage in the manner you want it to. REQUEST_URI sounds like the way to go, I use it myself fo make sure perl scripts are being called from a certain webpage.
Perl has no hooks into a browser window, that would be javascript. Javascript can only communicate with perl on the server via the query string or post data.