On Sat, Apr 26, 2008 at 3:42 PM, <[EMAIL PROTECTED]> wrote: > I tried your suggestion and got the following output: > 1) the first col didn't print, and the 3rd col overwrote the 2nd; this > is the main stumbling block > 2) also, what if example.txt has 36 lines with the same format as > described. > FYI I'm using cgywin's version of perl. snip
It sounds like you have some control characters in your data. Run this against the file and tell us what it outputs perl -ne 'chomp; print map { ord, "\n" } /([[:cntrl:]])/g' example.txt -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/