I'm sure it probably is covered, you're just not sure what to look for.
I am having a bit of trouble understanding what you mean by "tab". In a text document, there is no such thing as a "tab". Sure, you could put five spaces in there, but it will not be the same as a tab in Word or some other word processor.
Regardless, you want to do some research on "regular expressions" (regex) in Perl. To accomplish what you want, you will need to do something similar to the following:
Code:
$your_variable =~ s/|/'tab'/g;
What this does:
First, you have $your_variable, defined as whatever your output is.
Then, the regular expression searches for the pipe character.
When it finds the pipe character, it will replace it with the word "tab" (I'm positive that there is a perl expression for a non-breaking space, but I'm not sure what that is, so I'm temporarily using the word "tab" to fill that space).
The "g" at the end of the regex makes it a "global" search, which means that it will continue searching/replacing until it reaches the end of the variable.
If you leave off the "g", it will only replace the first instance of the regex, and will then quit.