If you have a recent version of List::MoreUtils
pojuse List::MoreUtils qw( singleton ); my $str = join '',singleton split '',"abcdefghiaabccdjklm"; print $str;
In reply to Re: How to remove duplicate characters in a string in place
by poj
in thread How to remove duplicate characters in a string in place
by punitpawar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |