in reply to Re^2: Find duplicate digits
in thread Find duplicate digits

The code is equivalent to
while (<DATA>) { my $a = join('', sort split //, $_); my @a = $a =~ /((\d)\2+)/g; print "$_" if grep {length $_ == 2} @a; }


holli, /regexed monk/

Replies are listed 'Best First'.
Re^4: Find duplicate digits
by Anonymous Monk on Feb 16, 2006 at 04:25 UTC
    Thanks, holli! That really helpful :)