title: Change first character on a line with upper case perl
body: <p>This is a simple question I guess, but I was trying to change just the first lower case letter of a line from a .txt file to an upper case, using the following </p>
  
  <pre><code>$_ =~ s/^[a-z]/\U/;
  </code></pre>
  
  <p>What happens, when I execute it, is that instead of changing the lower case to upper case the lower case at the beginning of the line is substituted with the most significant bit on the line. For example, the line <code>nAkld987aBALPaapofikU88</code> instead of being substituted with <code>NAkld987</code> becomes <code>Akld987...</code></p>