You also should use a tr when you are only trying to affect a single character:
runrig below gave you a very elegant solution using substr and trtr/://d; # instead of s/://g;
In reply to Re: Re: How do I use regex to strip out specific characters in a string?
by Sifmole
in thread How do I use regex to strip out specific characters in a string?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |