print "Content-type: text/html\n\n";
print "<html>\n";
print "<head>\n";
print "<META http-equiv=\"refresh\" content=\"0; url=http://mail.$
+domain/cgi-bin/qmailadmin\">\n";
print "</head>\n";
print "</html>\n";
with
print <<REDIRECT;
Content-type: text/html
<html>
<head>
<META http-equiv="refresh" content="0; url=http://mail.$domain/cgi-bin
+/qmailadmin>
</head>
</html>
REDIRECT
I would say that the second one is more readable and more maintainable. And be sure to read merlyn's strong suggestion to use CGI.pm for this particular application, instead of the code above.
--t. alex
but my friends call me T.
|