in reply to Re^2: Find duplicate digits
in thread Find duplicate digits
while (<DATA>) { my $a = join('', sort split //, $_); my @a = $a =~ /((\d)\2+)/g; print "$_" if grep {length $_ == 2} @a; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Find duplicate digits
by Anonymous Monk on Feb 16, 2006 at 04:25 UTC |