Couldn't you just do something simple like:
#at your "for" loop
for ($t=0;$t<$z;$t++) {
#Insert this
$zin[$t] =~ s/\[//g; #Remove left bracket
$zin[$t] =~ s/\]//g; #Remove right bracket
#End insert
#And continue with the rest...
if ($zin[$t] eq "212.104.202.50") { #etc
###############
It'll remove the brackets if they exist from each array element, then you'll have only
the IP left
and the "if" should snag it.
Greg
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/