Try '|' rather than "|".
What would you expect that to do? Are you thinking of the pattern to split? Even in that case, it wouldn't matter -- the pipe character has no special interpolation properties in single- versus double-quoted strings.
In reply to Re^2: Can't / won't print pipe delimiter?
by chromatic
in thread Can't / won't print pipe delimiter?
by punch_card_don
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |