title: How do I get command-line Perl to accept shell variables?
body: <p>I can do math like  </p>
  
  <pre><code>perl -e 'print 5253413/39151' -l
  </code></pre>
  
  <p>But I don't quite get how to take advantage of Perl's ability to do math with my own predefined bash variables. I've tried </p>
  
  <pre><code>var1=$(some wc command that yields a number); var1=$(some wc that yields another number)
  perl -e 'print var1/var2' -l
  </code></pre>
  
  <p>But it doesn't work</p>