in reply to (Golf) FLAMES

Whew, this was a tricky one! Here's my solution, at 150 characters:
sub flames { $N="@_";(@F,$_,$l)=@f;for$l(@l){$_.=$N=~s/$l//gi+0 }$n=$N=~s/[a-z]//gi;s/.(?=(.))/$&+$1/ge,chop while $_>100;splice@F,$l=($l+$n-1)%@F,1 while$#F;$_+0,@F }
We came up with exactly the same approach to counting off the letters in FLAMES.

I included a +0 near the end of the sub, so that it will return '1' instead of '00001', for example.

P.S. larryk, I'm very sorry things didn't work out for you and Buffy. Don't worry, I'm sure the right woman for you is out there somewhere!

Replies are listed 'Best First'.
Re: Re: (Golf) FLAMES
by larryk (Friar) on Aug 31, 2001 at 10:20 UTC
    tricky - this one's off the scale. i'm v.impressed. i especially like the while$#F; which birdies the usual while@F>1; par 10.

    only shame is it probably won't be appreciated (read:++'ed) since few took any interest. good effort.

       larryk                                          
    perl -le "s,,reverse killer,e,y,rifle,lycra,,print"