On Dec 4, Hasanuddin Tamir said: >Taken from perlfaq4, > > s/(_)/++$c <= $count ? '' : $1/ge;
Hrm, why not: s/(_)/++$c > $count && $1/ge; since it's DOCUMENTED that > returns '' for false. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]