in reply to Octet Regex
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";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Octet Regex
by amearse (Sexton) on Apr 28, 2001 at 00:02 UTC |