Perl script on cgiwrap

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();
Share

Related Posts

0 Responses to “Perl script on cgiwrap”


  • No Comments

Leave a Reply