I am relatively new at Perl, but shouldn't there also be an opening curly
brace ( { ) like this:

##############
##set $previous site var.
##############
if ($ENV{'HTTP_REFERER'} = "") {  #<---this curly brace?
       {$previous = "an unknown site"}
       else
       {$previous = "$ENV{'HTTP_REFERER'}}; #<--because you closed this if
statement here


-----Original Message-----
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 6/8/01 5:35 PM
Subject: if then else

ok, where did i go wrong now???


##############
##set $previous site var.
##############
if ($ENV{'HTTP_REFERER'} = "")
       {$previous = "an unknown site"}
       else
       {$previous = "$ENV{'HTTP_REFERER'}};

Reply via email to