title: How can I get a character at a given index in Perl?
body: <p>If I have a Perl string:</p>
  
  <pre><code>$str = "Hello";
  </code></pre>
  
  <p>how can I get a character at a given index similar to charAt(index)?</p>