in reply to Capturing external reffering url ?
*grins* A more perlish answer is to read $ENV{'HTTP_REFERER'} ;)