s/~~~(.?)/sprintf "|%d|", $1/se;
but that just displays '|0|' which I don't think is right because it shows as a CRLF on the terminal. I have an input file which has data between '\r' characters. Some of these fields contain '\n' and the mystery character. I have a regex which changes any '\n' to '~~~':
s/\n+/~~~/sg;
-- Andrew Gaffney Network Administrator Skyline Aeronautics, LLC. 636-357-1548
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>