I have a pipe delimiter file and each row has 10 "|" separators. some times there are new line characters and this messes up the file. Can some one please provide me a simple perl script to count "|" delimiters and if the count is less than 10 then remove new line character and merge next line and validate if the count of delimiters are 10