F
fjliu2004
Hi,
I have a main program written in C, which needs to call a Perl program
to do some work, and the Perl program in turn needs to call a C
function in the main program to pass back the values it produces. Can
anyone let me know how to do this? All the examples I found in the
perlcall man pages only deal with unidirectional communication between
Perl and C, not bidirectional.
So what I want to do is the following:
main program (in C) <calls> Perl code <calls> C func (in
main program)
BTW, the communication CANNOT be done by opening a pipe. It HAS TO be
done by the (called) Perl code calling a C function in the main
program.
Thanks in advance for the help!
Frank
I have a main program written in C, which needs to call a Perl program
to do some work, and the Perl program in turn needs to call a C
function in the main program to pass back the values it produces. Can
anyone let me know how to do this? All the examples I found in the
perlcall man pages only deal with unidirectional communication between
Perl and C, not bidirectional.
So what I want to do is the following:
main program (in C) <calls> Perl code <calls> C func (in
main program)
BTW, the communication CANNOT be done by opening a pipe. It HAS TO be
done by the (called) Perl code calling a C function in the main
program.
Thanks in advance for the help!
Frank