Hi!

This has probably come up before on the list, but couldn't find anything.  I have the 
following code as a redirection perl script:

#!/usr/bin/perl
$|=1;

while (<>)
{
                $url = "http://www.somesite.com\n";;
                print "302:$url\n";
}

I took an example from squid-cache.org and just modified it, and please forgive me if 
the code is totally wrong because I'm no perl genius (i'm no programming genius in 
general, for that matter!).  My problem is that the browser seems to be caught in a 
loop--it continuously redirects to the "http://www.somesite.com"; and never gets there. 
 
It's like the refresh button is held down indefinitely or something.  The page never 
loads, just keeps "refreshing".  I can hit the stop button and just get an action 
canceled erorr page.  Does anybody know what I've done wrong?

Thanks!

Reply via email to