Can we please see (simplified) code and sample data. It's hard to know what the problem is from your description. "chomp" should remove whatever is the line end character on your system, but you might be being burned by cross-platform portability issues.
Have you tried something like s/\012|\015//?
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: How do I get rid of the cr/lf
by davorg
in thread How do I get rid of the cr/lf
by just dave
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |