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

Run
$line = "one % : thrre blblblb % 545334\n"; chomp($line); print "$line valid\n";

If you get

one % : thrre blblblb % 545334 valid

then someting is really wrong with your perl.

If you get,

one % : thrre blblblb % 545334 valid

then chomp is working and my previous post stands. Answer the questions in my previous post if you want to find the problem. I've just added code snippets in that post to help you answer the questions.