title: Replace only first match in multiple files with perl
body: <p>I need to replace a bit of text in multiple css files, but ony the first occurence.</p>
  
  <p>I've tried replacing with:</p>
  
  <pre><code>perl -pi -e 's/(width:).*;/$1 100%;/' filename.css
  </code></pre>
  
  <p>But this replaces the value after every occurrence of 'width:' in the file, even though i'm not using the /g modifier.
  I'm running this on a recent Ubuntu machine.</p>