in reply to Re^2: mod-perl2 re-using $ENV{REMOTE_ADDR}
in thread mod-perl2 re-using $ENV{REMOTE_ADDR}

Making the variables lexical variables would likely also help:

use strict; my @IPs; my $ip;