print "Content-type: application/vnd.ms-excel; CHARSET=x-sjis\n"; print "Content-disposition: attachment; filename=yourfilename.xls\n\n";