N
narra.madan
hi,
i am getting the follwing error when ever i call a module from my pgm..
#################################################################
[Thu Jun 15 12:04:29 2006] [error] [client 127.0.0.1] Premature end of
script headers: Register.pl
Thu Jun 15 12:04:29 2006] [error] [client 127.0.0.1] Reg_Display.pm did
not return a true value at W:/cgi-bin/new/Register.pl line 13.
[Thu Jun 15 12:04:29 2006] [error] [client 127.0.0.1] BEGIN
failed--compilation aborted at W:/cgi-bin/new/Register.pl line 13.
################################################################
the code is as follows...
#!c:\perl\bin\perl
use warnings;
use strict;
BEGIN
{
unshift(@INC,"/cgi-bin/lib/register");
};
use CGI;
my($cgi);
use Reg_Display; <-"error occured here"
$cgi=CGI->new;
print $cgi->header('text/html');
print $cgi->start_html;
print<<"EOT";
i am in register
EOT
&Reg_Display::content_Display();
print $cgi->end_html;
i am getting the follwing error when ever i call a module from my pgm..
#################################################################
[Thu Jun 15 12:04:29 2006] [error] [client 127.0.0.1] Premature end of
script headers: Register.pl
Thu Jun 15 12:04:29 2006] [error] [client 127.0.0.1] Reg_Display.pm did
not return a true value at W:/cgi-bin/new/Register.pl line 13.
[Thu Jun 15 12:04:29 2006] [error] [client 127.0.0.1] BEGIN
failed--compilation aborted at W:/cgi-bin/new/Register.pl line 13.
################################################################
the code is as follows...
#!c:\perl\bin\perl
use warnings;
use strict;
BEGIN
{
unshift(@INC,"/cgi-bin/lib/register");
};
use CGI;
my($cgi);
use Reg_Display; <-"error occured here"
$cgi=CGI->new;
print $cgi->header('text/html');
print $cgi->start_html;
print<<"EOT";
i am in register
EOT
&Reg_Display::content_Display();
print $cgi->end_html;