in reply to Re^2: searching for strings
in thread searching for strings
and nicer, imho :)my @d = qw(AAA30 BBC5 SHT12H DAL33B BBC49 AAA31 DAL33A BBC6 SHT12G BBC +50); my %seen; map { print "$seen{$_},$_\n" if $seen{$_}; } map { my $v = $_; my $l = chop $v; $seen{$v.++$l}=$_; } @d;
Oha
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: searching for strings
by FunkyMonk (Bishop) on Aug 06, 2007 at 14:16 UTC |