[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] 4 Consecutive Letters



At 11:58 PM 8/14/00 -0400, Uri Guttman wrote:
> >>>>> "PS" == Peter Scott <Peter@PSDT.com> writes:
>   PS> That makes this the shortest so far, then:
>
>   PS>        perl -ne'/.(??{($a=$&)++;$a++.$a++.$a})/&&print'
>
>and i bet you can change && to & for one more char (another golf trick
>that works sometimes).

Not in this case.  & doesn't short-circuit.

--
Peter Scott
Pacific Systems Design Technologies


==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe