On Sat, 8 Jun 2002, Eugene van der Pijll wrote:
>
> En op 08 juni 2002 sprak Stephen Turner:
> >
> > sub t{lc=~y/aeiouy//.v47.s//$&/g}
> > # A subroutine to calculate the statistic. v47 is the same as '/' but has
> > # better tie break score.
>
> You left out the best part, IMHO. Look at the substitution. It has an
> empty regex, which means it uses the last successful regex. This is a
> perl feature of doubtful value, which will be removed in Perl6. And it's
> the first time I've ever used it. The last successful regex is of course
> /\w/.
>
You're right, I completely missed it.
--
Stephen Turner, Cambridge, UK http://homepage.ntlworld.com/adelie/stephen/
"This is Henman's 8th Wimbledon, and he's only lost 7 matches." BBC, 2/Jul/01