in reply to Re: chomp not working
in thread chomp not working

I think I know why the chomp wasn't working. chomp removes the newline character from the end of the string. My file was all 1 string... so it's only removing the last newline char, not the new line chars throughout.
solution: $content =~ s/\r\n//g;
Thanks guys