title: Using bash variable in perl parameter
body: <p>Ubuntu, terminal window, bash shell:</p>
  
  <pre><code>alex@d120432:~$ echo $0
  bash
  alex@d120432:~$ echo $(perl -e 'print "a"x2')
  aa
  alex@d120432:~$ i=2
  echo $i
  2
  alex@d120432:~$ echo $(perl -e 'print "a"x$i')
  
  alex@d120432:~$
  </code></pre>
  
  <p>Is there syntax which allows to substitute <code>$i</code> with 2, so that the second  <code>echo</code> command prints <code>xx</code> like the first one?</p>