#!/usr/bin/perl -w use strict;undef $/;$_=<>;while(m+^(\d)(\1*)+) {print length($1.$2),$1;s;$1$2;;;} ######################################################## # # This works best with the numbers 1, 2, and 3. # ########################################################
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: 123 Digit Counter
by Juerd (Abbot) on Mar 13, 2002 at 20:56 UTC | |
by rje (Deacon) on Mar 13, 2002 at 22:06 UTC | |
by chr0 (Sexton) on Mar 15, 2002 at 11:54 UTC | |
by Juerd (Abbot) on Mar 13, 2002 at 22:10 UTC |