Hi folks,

Just a word to mention this: Perl Golf is indeed advertised in perlfaq!!

  $ perldoc -q consec
  Found in /usr/lib/perl5/5.6.1/pod/perlfaq4.pod
       How do I remove consecutive pairs of characters?

       To turn ""abbcccd"" into ""abccd"":

           s/(.)\1/$1/g;       # add /s to include newlines

       Here's a solution that turns "abbcccd" to "abcd":

           y///cs;     # y == tr, but shorter :-)


Look at the last line! :-)

Jerome
-- 
[EMAIL PROTECTED]

Reply via email to