1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

print problem

Discussion in 'Perl' started by bhavin12300, Apr 22, 2007.

  1. bhavin12300

    bhavin12300 New Member

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

    here is the simple code

     #! /usr/bin/perl
       $obj=new CGI();
       print $obj->header();
       print <<"BHAVIN";
       <H1>HELLO WORLD
    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.
    Last edited by a moderator: Apr 23, 2007
  2. pradeep

    pradeep Team Leader

    You need to have a blank new line after BHAVIN in the last line!
  3. bhavin12300

    bhavin12300 New Member

    its working now
    thank you

Share This Page