How can i call a function in cgi!
i want to make a htmlsite which works with my main programm an gives the
result out!
if i use the functon name it does not work!
wo can i involve a function into this cgi script?
....
   use CGI;
  my $cgi = new CGI;
  use CGI::Carp qw(fatalsToBrowser);



  my $ei=$cgi->param("Search");
  $cgi->default_dtd('-//W3C//DTD HTML 4.01 Transitional//EN');

  print $cgi->header(),
   $cgi->start_html('Da),
 $cgi->h2('Query'),
print start??????
        $cgi->h3($ei),
       $cgi->hr({-noshade => undef, -size => '1'}),
   $cgi->h2({-style => 'color:blue'},
 $cgi->end_html();




how can i use this main programm in thr cgi section, that it becomes
part of the htmlpage?
sub start()
{
 my $d;
 my $date;
 $date=&request("nu");
 $doc=get $date;
 process($doc);

}


Maybe what you want is something like this...

<snip>

   $cgi->start_html('Da),
 $cgi->h2('Query'),
print &start;   # prints what you return ! (or just "&start;")
        $cgi->h3($ei),
       $cgi->hr({-noshade => undef, -size => '1'}),

...

sub start {
        ... # returns what you "create"... 
        # you could also "print" in this sub ...
        # you could also call cgi functions in this sub 
        }
</snip>

Hope this gives you some ideas...

jwm

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to