How do I remove duplicate characters and keep the unique one only. For example, my input is:
EFUAHUU UUUEUUUUH UJUJHHACDEFUCU
Expected out
Use uniq from List::MoreUtils:
perl -MList::MoreUtils=uniq -ne 'print uniq split ""'