anyone have any better ideas? i would love to see some other cool perlish ways of doing this...#!/usr/bin/perl -w use strict; while (<>) { my $temp = ''; print join ('', map { if ($_ eq $temp) { $temp = ''; } else { $temp = $_; } } split('', $_) ); }
In reply to removing duplicate letters by eduardo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |