title: What does the ^ operator do in Perl?
body: <p>Situation in perl</p>
  
  <pre><code>$password = 'admin';
  $newchal = 'hnfdfhj238478wdehf';
  
  $password2 = unpack "H32", ($password ^ $newchal);
  </code></pre>
  
  <p>this is very important becuase i'm sending this password to a radius server that needs the right encoding.. This method above is from a standard script.</p>
  
  <p>now in PHP i tried: </p>
  
  <pre><code>$password2 = unpack("H32", $password.''.$newchal);
  </code></pre>
  
  <p>I compared the outcoming but it's different.. I can't figure out what the '^' means in perl.
  Can anyone help me out?</p>