WHY DOES MY IF STATEMENT NOT WORK
Code:
#!/Perl/bin/perl -wT
use CGI qw(:standard);
use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
use strict;
print "Content-type: text/html\n\n";
my $query = new CGI;
my $cookieinfo = $query->cookie('mcjeeves.net');
if (!$cookieinfo)
{
print <<"EOF";
<META http-equiv="refresh" content="0;URL=http://www.yahoo.com">;
EOF
exit;
}
else
{
print <<"EOF";
<META http-equiv="refresh" content="0;URL=http://www.lycos.com">;
EOF
}