$w='Appear'; $w =~ s/(\w)\1/$1/g; print $w; __END__ Apear
Update: There is a more sophisticated approach described in remove repeating characters from strings.
In reply to Re: Remove repeated characters from a string
by EdwardG
in thread Remove repeated characters from a string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |