title: How to check if string starts with space in Perl?
body: <p>I have a string which has a lot of spaces in it in the beginning.</p>
  
  <pre><code>my $str="       hello";
  </code></pre>
  
  <p>What is the condition to check if line starts with space?</p>