title: How to use shell variables in perl command call in a bash shell script?
body: <p>How to use shell variables in perl command call in a bash shell script?</p>
  
  <p>I have a perl command in my shell script to evaluate date -1.</p>
  
  <p>How can i use <code>$myDate</code> in perl command call?</p>
  
  <p>This is the section in my script: </p>
  
  <pre><code>myDate='10/10/2012'
  
  Dt=$(perl -e 'use POSIX;print strftime '%m/%d/%y', localtime time-86400;")
  </code></pre>
  
  <p>I want use <code>$myDate</code> in place of <code>%m/%d/%y</code>.</p>
  
  <p>Any help will be appreciated.</p>
  
  <p>Thank you.</p>