Memo

メモ > 技術 > プログラミング言語: Perl > 基本的なプログラム

■基本的なプログラム
■Linux
#!/usr/local/bin/perl print "Content-Type: text/html; charset=Shift_JIS\n\n"; print "<html>\n"; print "<head><title>サンプル</title></head>\n"; print "<body>\n"; print "<p>初めてのCGI。</p>\n"; print "</body>\n"; print "</html>\n"; exit;
■XAMPP
#!/xampp/perl/bin/perl print "Content-Type: text/html; charset=Shift_JIS\n\n"; print "<html>\n"; print "<head><title>サンプル</title></head>\n"; print "<body>\n"; print "<p>初めてのCGI。</p>\n"; print "</body>\n"; print "</html>\n"; exit;

Advertisement