never matches anything.$octet ||= $_ if /($hacklist =~ m~((\d{1,3}\.){3}\d{1,3})~)/;
It doesn't match anything since $hacklist is set to "hack.txt" early on in your script:
Perhaps you meant $_=~ rather than $hacklist =~ ?my $hacklist = "hack.txt";
In reply to Re: Octet Regex
by kschwab
in thread Octet Regex
by amearse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |