title: How to remove a specific word from a file in perl
body: <p>A file contains:</p>
  
  <pre><code>    rhost=localhost
      ruserid=abcdefg_xxx
      ldir=
      lfile=
      rdir=p01
      rfile=
      pgp=none
      mainframe=no
      ftpmode=binary
      ftpcmd1=
      ftpcmd2=
      ftpcmd3=
      ftpcmd1a=
      ftpcmd2a=
      notifycc=no
      firstfwd=Yes
      NOTIFYNYL=
      decompress=no
      compress=no
  </code></pre>
  
  <p>I want to write a simple code that removes the "_xxx" in that second line. Keep in mind that there will never be a file that contains the string "_xxx" so that should make it extremely easier. I'm just not too familiar with the syntax. Thanks!</p>