これでいいのかしら?

print "Content-type: text/html\n\n";
print <<EOF;
<?xml version="1.0" encoding="utf-8"?>
<response>
<error>0</error>
</response>
EOF