you need to escape the pipe, which sounds a lot more exciting than it is:
s/\|/ /go;
will work. | is a control character in a regex, unless preceded by the escaping backslash.
update goodness. that's a new peak of redundancy. I was too busy wondering why s// /g does what it does. Can anyone explain?
tachyon yeah, it's the op's /o, and i forgot to take it out when i simplified the reply.
In reply to Re: replacing pipe "|"
by thpfft
in thread replacing pipe "|"
by nadadogg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |