in reply to Re: Objectionable reference
in thread Objectionable reference
$tmp = $line->source_str; if ($tmp =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/) { push @sources, $tmp; } else { # print "Help Me\t" . $line->source_str . "\n"; my @sources = $configs{$fw}->obj($tmp); }
With these changes in my unsanitized script, I got the same results.
Edit:
I re-read your post. When I don't use my @sources = I seem to get the entire firewall object (i.e. the object referenced in $configs{$fw}), rather than the array of the address that should be held in $configs{$fw}->obj($tmp). That's why I put the my in in the first place. Is there a better way to deal with that issue?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Objectionable reference
by NetWallah (Canon) on Dec 12, 2009 at 19:23 UTC |