$/ = ""; # Paragraph node. my %seen; open my $fh => "...." or die; while (<$fh>) { next unless /(%FW-\d+-\d+)/; print "$1\n$_" unless $seen {$1} ++; }
This is just a variant on "remove duplicates".
Abigail
In reply to Re: Tricky Syslog Parsing
by Abigail-II
in thread Tricky Syslog Parsing
by Dru
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |