print "Content-type: text/html\n\n";ここで最初から説明します。
| text/plain | 普通のテキスト形式 |
|---|---|
| text/html | HTML形式 |
| image/gif | gif 画像 |
| image/jpg | jpg 画像 |
※ #!/usr/local/bin/perl は perl プログラムをファイル名で実行するときに必要なものです。----- 以下、CGIプログラム ----- #!/usr/local/bin/perl print "Content-type: text/plain\n\n"; print "Hello, World !\n"; exit; ----- 以上、CGIプログラム ----- ----- 以下、出力結果 ----- Hello, World ! ----- 以上、出力結果 -----