title: Overwrite with empty string in a file read line Perl
body: <p>I am working a script that will remove text at a given spot that is separated with xFE with the text identifiers as x14.</p>
  
  <p>Here is an example of a line:</p>
  
  <pre><code>þþ \xFE þþ \xFE þþ \xFE þþ \xFE þþ \xFE þþ \xFE þþ \xFE þþ \xFE þþ
  </code></pre>
  
  <p>(Note: The xFE character will not display properly. Sorry.)</p>
  
  <p>What I want is to get the nth þþ. I have already split it on the \xFE and can check the value, but what I want to do is to empty the value between the þþ.</p>
  
  <p>Any ideas?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Just to clarify, what I am doing is reading a file and at the nTh position on a line in that file I want to replace the contents surrounded by the specified þþ characters. It is a CSV file that use the \xFE and \x14 characters. What I am trying to do is split the line at the \xFE and then get the value between the \x14 chars then overwrite that value in the file.</p>