title: Perl - unknown end of line character
body: <p>I want to read an input file line by line, but <strong>this file has unknown ending character</strong>. </p>
  
  <p>Editor <code>vim</code> does not know it either, it represents this character as  <code>^A</code> and immediately starts with characters from new line. The same is for <code>perl</code>. It tried to load all lines in once, because it ignores these strange end of line character.</p>
  
  <p>How can I set this character as end of line for perl? I don't want to use any special module for it (because of our strict system), I just want to define the character (maybe in <code>hex</code> code) of end of line.</p>
  
  <p>The another option is to convert the file to another one, with good end of line character (replace them).  Can I make it in some easy way (something like <code>sed</code> on input file)? But everything need to be done in perl.</p>
  
  <p>It is possible?</p>
  
  <p>Now, my reading part looks like:</p>
  
  <pre><code>open (IN, $in_file);
  $event=&lt;IN&gt;;   # read one line
  </code></pre>