in reply to Re^2: $ENV{REMOTE_ADDR} problem
in thread $ENV{REMOTE_ADDR} problem

You should take what 1nickt wrote and give it due consideration. You didn't post a working script, what you posted makes no sense at all. You said that $query contains a string (you didn't enclose it in quotes, nor end the line with a ;) and are now claiming that "select my remote_ip from tbl where me = me" is not equal to a value returned by $cgi->remote_addr(). This makes no sense