in reply to Passing a structure from C to Perl
Personally, I'd use popen() to start the process and have the perl process read the parameters from its standard input.
That way, you bypass all the problems of command lines -- limited lengths, quoting, dangers of binary data triggering unintended actions -- and you can pass th edata in whatever form makes most sense to you, text or binary, and write it in one big chunk or as many small chunks as you like.
All together more satisfactory IMO.
|
|---|