title: What is $@ in Perl?
body: <p>I have a Perl script which I cannot understand.</p>
  
  <pre><code>for $i(@myarr)
  {
      #some stuff
      eval {
          #some stuff
      };
      if($@)
      {
          print "*** $@ ****";
      }
  }
  </code></pre>
  
  <ol>
  <li>What does that eval do? Is it a standard Perl command or just some sub?</li>
  <li>What is the variable $@? It is currently printing a string but I don know where that string is coming from.</li>
  </ol>