title: Counting to Scalar Value
body: <p>So I have a <code>foreach</code> loop:</p>
  
  <pre><code>foreach (1..10) {
      print "#", $t, "\n";
   }
  </code></pre>
  
  <p>But I also have a scalar:</p>
  
  <pre><code>$number = 5;
  </code></pre>
  
  <p>Can I count from 1 to the scalar like so?</p>
  
  <pre><code> foreach (1..$number) {
      print "#", $t, "\n";
   }
  </code></pre>
  
  <p>When I do this, the program simply outputs nothing. What can I do to make this work?</p>