in reply to Trying to strip the Pipe "|" character from a string

The pipe character has special meaning in regexps: alternation. That means you need to escape it with a backslash like this:

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