in reply to how to remove empty pipe delimiters in a line which doesn't contain any data
$string =~ tr/|/|/s; [download]
Difference between tr/// and s///?