According to J.E.France:
>       I am wondering if it is possible to have a perl program call upon 
> the htsearch.cgi file, sending it the input, and having it perform the 
> search.  I'm sure this is possible, as Perl and C/C++ can be 
> embeded within each other.  Unfortunately (again), I am very new to 
> Perl, and know only the "easy" part of C, and am unsure where I 
> can go for help, information, or examples.  I am looking for ideas 
> and examples of how to take input read in Perl, send it to C++, and 
> have the C++ file finish the job.  

Have a look at the example Perl script, contrib/ewswrap/htwrap.cgi,
which comes with the ht://Dig source distribution.  It shows how to
pass a query string from a Perl program to htsearch.  The key is to
set the right environment variables.  You shouldn't need to make any
changes to htsearch's C++ code at all.  Good luck.

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930

------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.

Reply via email to