Where in that code did you use the following two lines?
s/[|]+/|/g; print;
In reply to Re^3: how to remove empty pipe delimiters in a line which doesn't contain any data
by Corion
in thread how to remove empty pipe delimiters in a line which doesn't contain any data
by rpinnam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |