AN HTTPD ゲストブック/コメント集(2000年6月16日18:27)


kazu murakami@dti.ne.jp 2000/06/19 16:39

中田さんぴゅあさん本当にありがとうございました。お礼にて失礼致します。


中田昭雄 nakata@st.rim.or.jp 2000/06/16 21:05

kazu さん、
hello.cgi の中身は #!/usr/bin/perl から始まります。

最初の
------------------ hello.cgi --------------------
というのはこの下から hello.cgi が始まるという意味です。
同様に最後の ----- の行も不要です。


kazu kiyo-n@po1.dti2.ne.jp 2000/06/16 18:27

そして、只今hello.CGI?に挑戦しています。が、AN HTTPD ゲストブック/コメント集を拝見しながらやっていますが、今一つ理解ができません。ご指導お願いします。ないようはhttp://127.0.0.1/~kazuo-k/hello.cgiと入力すると、下記のようにでてしまいます。どうしてなのでしょうか?
CGI エラー - Content-Type ヘッダが正しくありません。
CGI 出力メッセージ:
Can't modify constant item in predecrement at C:\www\kazuo-k\public_html\hello.cgi line 1, near "hello."
syntax error at C:\www\kazuo-k\public_html\hello.cgi line 4, near "print"
syntax error at C:\www\kazuo-k\public_html\hello.cgi line 9, at EOF
Execution of C:\www\kazuo-k\public_html\hello.cgi aborted due to compilation errors.