Redirect to referring page?



I don't know anything about perl yet, but I have a perl script that redirects to a specific page that is designated in a variable.  The line in the script that redirects to the specified page is:
print qq~Location: $redirect\n\n~;

I'd like to have it redirect to the same page that called the script.  How would I do that?

Can someone help me?

Thx

T