Go4Expert (http://www.go4expert.com/)
-   Perl (http://www.go4expert.com/forums/perl/)
-   -   print problem (http://www.go4expert.com/forums/print-problem-t3983/)

bhavin12300 22Apr2007 15:38

print problem
i have created one pl cript and running it in windows using browser

here is the simple code

Code: Perl

#! /usr/bin/perl
   $obj=new CGI();
   print $obj->header();
   print <<"BHAVIN";

and its it giving me following error

CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:

Can't find string terminator "BHAVIN" anywhere before EOF at C:\Inetpub\Scripts\A.pl line 7.

pradeep 23Apr2007 10:14

Re: print problem
You need to have a blank new line after BHAVIN in the last line!

bhavin12300 29Apr2007 08:33

Re: print problem
its working now
thank you

All times are GMT +5.5. The time now is 14:44.