title: Remove the last characters of a string
body: <p>How can I remove the last six characters of a string using Perl? In my case I need to remove <code>:00:00</code></p>
  
  <p>For example</p>
  
  <pre><code>goes_2017-05-14_00:00:00 
  </code></pre>
  
  <p>to get</p>
  
  <pre><code>goes_2017-05-14_
  </code></pre>