Hi,
 
Now I am doing mod_perl programing And I have gone through the related documents also.
I have written two mod_perl programs whose output is same (through browser).
I want to know what are the difference between them!  If there is any difference then what are the pros and cons in using both of them?
 
____one.cgi____
 
if(exists $ENV{MOD_PERL}) {
   my $r = Apache->request;
   $r->content_type("text/html");
   $r->send_http_header;
   $r->print("Hi There!");
}
 
____two.cgi____
 
if(exists $ENV{MOD_PERL}) {
    print "Content-Type: text/html\n\n";
    print "Hi There!";
}
 
Thanks,
Muthu S Ganesh
 
 
 
P.S.
 
[NQ] <- Newbie Question
 
 
 
 
 
Differentiated Software Solutions Pvt. Ltd.,
90, 3rd Cross,2nd Main,
Ganga Nagar,
Bangalore - 560 032
Phone : 91 80 3631445
Visit us at www.diffsoft.com

Reply via email to