title: malformed header from script. Bad header=<!DOCTYPE html>
body: <p>I am receiving the following server error on a perl script:</p>
  <blockquote>
  <p>malformed header from script. Bad
  header=:
  youtube_perl.pl,</p>
  </blockquote>
  <p>Here is my source code:</p>
  <pre><code>#!&quot;C:\XAMPP\perl\bin\perl.exe&quot; -T
  
  use strict;
  use warnings;
  
  use CGI;
  use CGI::Carp qw/fatalsToBrowser/;
  use WWW::Mechanize;
  
  my $q = CGI-&gt;new;
  
  my $url = 'http://www.youtube.com';
  
  my $mechanize = WWW::Mechanize-&gt;new(autocheck =&gt; 1);
  
  $mechanize-&gt;get($url);
  
  my $page = $mechanize-&gt;content();
  
  print $page;
  </code></pre>