title: Looping through characters in Perl
body: <p>I'm having quite a difficulty, figuring out some strange behavior when looping through symbols in Perl, using the <code>for</code> loop.
  This code snippet works just as expected:</p>
  
  <pre><code>for (my $file = 'a'; $file le 'h'; $file++) {
      print $file;
  }
  </code></pre>
  
  <h3>Output: abcdefgh</h3>
  
  <p>But when I try the loop through the symbols backward, like this:</p>
  
  <pre><code>for (my $file = 'h'; $file ge 'a'; $file--) { 
      print $file;
  }
  </code></pre>
  
  <p>gives me the following as a result.</p>
  
  <h3>Output: h</h3>
  
  <p>Maybe the decrement operator doesn't behave as I think it does when symbols are involved?</p>
  
  <p>Does anybody have any ideas on the matter? I'd really appreciate your help!</p>
  
  <p>Regards,</p>
  
  <p>Tommy</p>