title: CGI.pm header function to bring up the download dialog box
body: <p>I need to bring up a download dialog box from my cgi perl script.</p>
  
  <p>this is what I have</p>
  
  <pre><code>use CGI qw/:standard/;
  
  print header(-type=&gt;'text/xml',-charset=&gt;'UTF-8');
  print header(-'Content-Disposition'=&gt;'attachment; filename="FileName"');
  print "&lt;root&gt;&lt;/root&gt;";
  </code></pre>
  
  <p>there is something wrong with the content-Disposition. I could not get it to work. </p>