if(condition) { print "Content-type: text/html\n\n"; print "Location: $REDIRECT\n"; }