Hi,
...or any other way to do this ?
What about using tr/// you can do perldoc -f tr on your CLI to read the documentation.
The following works like you wanted:
perl -we "$ARGV[0]=~tr[abf]()ds; print $ARGV[0]" aaabbcdeffgh # prin +ts cdegh
In reply to Re: How to remove all repeating characters in a string in place
by 2teez
in thread How to remove all repeating characters in a string in place
by punitpawar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |