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

good response @lnickt

i thought this would work also in cgi $ENV{REMOTE_ADDR}

i changed to $cgi->remote_addr() and works

Replies are listed 'Best First'.
Re^3: $ENV{REMOTE_ADDR} problem
by marto (Cardinal) on Oct 23, 2018 at 11:44 UTC

    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