Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Passing a structure from C to Perl

by BrowserUk (Patriarch)
on Mar 23, 2018 at 08:11 UTC ( [id://1211592]=note: print w/replies, xml ) Need Help??


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.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
In the absence of evidence, opinion is indistinguishable from prejudice. Suck that fhit

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1211592]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-19 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found