http://www.perlmonks.org?node_id=1017568

rajsai28 has asked for the wisdom of the Perl Monks concerning the following question:

Hi, '|' field delimeter. I am writing the input to the file by using a field delimiter. when i see the output file, The output file looks like( where the output scattered on the more than one line:
00002|GR_TESTING_Release|00001|0000997|3500243| 5909|20121115|2012111|TESTING |CHECK
output:
00002|TESTING|00001|0000004|0000006|0001|11111111||11111111|ABCDEFH||| +|9999999999|ABCDEF|ABCDK|ABCD|ABCDEF |||||||||||||||||||||0001-01|AB|TESTING|||||||AB|ABC|ABC|CHECK
but i want file ouput as below: In single line.
00002|GR_TESTING_Release|00001|0000997|3500243|5909|20121115|2012111|T +ESTING|CHECK
expected:
00002|TESTING|00001|0000004|0000006|0001|11111111||11111111|ABCDEFH||| +|9999999999|ABCDEF|ABCDK|ABCDEF|ABCD|||||||||||||||||||||5909-01|IW|A +LDEA|||||||AB|ABC|ABC|||||||||||CHECK