s/\|//g;
Or use the tr/// operator:
tr/|//d
There's good information on the subject in perlrequick, perlretut, perlop, and perlre. ...lots of reading, I know. But it's helpful.
Dave
In reply to Re: Trying to strip the Pipe "|" character from a string
by davido
in thread Trying to strip the Pipe "|" character from a string
by binarynomad
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |