title: Remove all lines from a file that contain a non-ascii character
body: <p>I have a file with thousands of lines in it. I would like to search each line for a non-ascii character, and if found, delete that entire line.</p>
  
  <p>I found this bit of code in perl:</p>
  
  <pre><code>perl -i.bak -ne 'print unless(/[^[:ascii:]]/)' file
  </code></pre>
  
  <p>But I get this error when I run it with my file:</p>
  
  <pre><code>Can't find string terminator "'" anywhere before EOF at -e line 1.
  </code></pre>
  
  <p>Does anyone have any code for an actual perl script instead of a one liner like the above?</p>