If I use some script like this
1 2
| #!/usr/bin/perl
print "Hello World!"; |
It will give me error :
1
| [Wed Aug 16 08:57:50 2006] [error] [client 222.209.97.197] malformed header from script. Bad header=Hello World...: /www/cgiwrap/cgi/cgiwrap |
And I must do like this:
1 2 3 4
| #!/usr/bin/perl
use CGI qw(:standard );
print header ('Welcome to my home page!');
print start_html (), "Linux and PHP", end_html (); |
Related Posts
- February 23, 2011 -- 用Apache ab模拟用户登录后投注测试
- October 29, 2010 -- 基于Nginx, lighttpd/apache上的OpenX高性能集群配置
- August 12, 2010 -- CACHE CONTROL WITH HTACCESS
- June 7, 2010 -- 永久转向
- September 23, 2009 -- Windows 上 Apache Webdav 问题
- September 15, 2009 -- Install DBD::mysql with CPAN
- September 15, 2009 -- 自动回答CPAN安装
- August 10, 2009 -- Perl check LDAP password online
- July 20, 2008 -- 用CPAN安装perl module
- July 14, 2008 -- 使用Perl和MySQL找出书名中的中文词语
0 Responses to “Perl script on cgiwrap”