
Zeke_D
Deleted
Jul 17, 2000, 7:24 AM
Post #1 of 2
(2089 views)
|
Here is an easy one for you gurus: I am reading data from a pipe-delimited database. there are several variables, and I want to check to see if a certin variable is true: the reading variables is easy: foreach (@data) { ($referer, $file, $date, $time) = split ('[|]',$_); } checking the variables is easy: if ($referer eq $ENV{'HTTP_REFERER'}) { $match = "1"; } I want something like this: if ($referer eq $ENV{'HTTP_REFERER'}) AND ($file eq $ENV{'HTTP_REFERER'}) then do $foo whats the symbol for AND when checking variables? what about OR? How about if FOO=variable1 BUT NOT FOO = variable2 ? -thanks
|