title: Error while running perl inside of php
body: <p>I am trying to run a simple perl script inside of php. I keep getting these weird shell errors that i can't figure out why, below is the php code:</p>
  
  <pre><code>&lt;?php
  system("perl -e use Socket;\$i='192.168.1.1';\$p=443;print \$i;print \$p");
  ?&gt;
  </code></pre>
  
  <p>Error I keep getting when running it:</p>
  
  <pre><code>syntax error at -e line 1, at EOF
  Execution of -e aborted due to compilation errors.
  sh: 1: =192.168.1.1: not found
  sh: 1: =443: not found
  </code></pre>
  
  <p>I am running the php script through cli like this:</p>
  
  <pre><code>php script.php
  </code></pre>