title: How to remove CR LF end of line in Perl
body: <p>I need to remove and of the line which looks like CR LF.</p>
  
  <p>Coding - Windows-1250
  Windows 7 EN</p>
  
  <p>I have been trying to chomp, chomp, change \R to nothing change \r\n etc but nothing works...</p>
  
  <p>Thank you in advance</p>
  
  <pre><code>use strict;
  $/ = "\r\n";
  open FILE , "&lt;", "file.txt" or die $!;
  while (&lt;FILE&gt;) {
      my @line = split /,/ , $_;
  
      foreach my $l (@line) {
          print $l;
      }
      sleep(1);
  }
  </code></pre>