>>>>> "PS" == Peter Scott <Peter@PSDT.com> writes: PS> 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). PS> Not in this case. & doesn't short-circuit. yep. i didn't see that. but it is useful to know for golf. uri -- Uri Guttman --------- uri@sysarch.com ---------- http://www.sysarch.com SYStems ARCHitecture, Software Engineering, Perl, Internet, UNIX Consulting The Perl Books Page ----------- http://www.sysarch.com/cgi-bin/perl_books The Best Search Engine on the Net ---------- http://www.northernlight.com ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe