title: Using -e and -s switch in perl
body: <p>I am starting to lern Perl. I tried</p>
  
  <pre><code>perl -e 'print "The value of \$x=$x\n";'
  </code></pre>
  
  <p>gives:</p>
  
  <pre><code>The value of $x=
  </code></pre>
  
  <p>whereas:</p>
  
  <pre><code>perl -s -x=10 -e 'print "The value of \$x=$x\n";'
  </code></pre>
  
  <p>gives</p>
  
  <pre><code>No Perl script found in input
  </code></pre>
  
  <p>I would like to use the <code>-s</code> switch together with <code>-e</code> switch.. Why is it not working?</p>