On Wed, Jul 07, 1999 at 10:33:46AM -0700, Derek J. Balling wrote: > At 01:21 PM 7/7/99 -0400, Ronald J Kimball wrote: > >On Wed, Jul 07, 1999 at 12:51:00PM -0400, Chaim Frenkel wrote: > > > How about the slightly shorter (join '', sort split //, lc) =~ /^abcde/ > > > >Shorter but incorrect (see clpmod). It does not work properly with > >duplicate letters, and it does not require the 5 letters to be consecutive. > > Well the consecutive nature is handled by the sort (which will arrange them > into consecutive order if they're there), so you could try: No, the consecutive order is _ruined_ by the sort. The letters must be consecutive in the original word. After it's sorted, of course they're consecutive, but that's meaningless. Ronald ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe