in reply to Re: Re: Re: removing duplicated elements from array, with a difference
in thread removing duplicated elements from array, with a difference

This should do it if your pattern is can be reliably matched by a single regex

my $pattern = qr/a regex that matches your pattern/; my @deduped = grep { !exists $count{$_} or $count{$_} == 1 } map { /$pattern/ and $count{$_} ++; $_ } @data;

What's this about a "crooked mitre"? I'm good at woodwork!
  • Comment on Re: Re: Re: Re: removing duplicated elements from array, with a difference
  • Download Code