Hmm I think you'd want \Q and \E in that regex unless the ips contain meta-characters for wild-carding.
You could do a print while <HTML>; rather than slurping everything into an array.
Thinking about it, the g in the regex isn't needed either. A match is a match, there is nothing to check globally.
You could do a print while <HTML>; rather than slurping everything into an array.
Thinking about it, the g in the regex isn't needed either. A match is a match, there is nothing to check globally.