How to invoke a perl function from a shell sciprt and C code, and get a string back as the return value?
Posted on 2007-11-14
I have a perl script in the following format. It defines a package crypto, and has function decrypt.
my retval = "String";
Decrypt, returns the plain_text string of whatever it was told to decrypt.
Now, my problem is that how can I call this function from a Shell script and C code, getting the return value back in both cases?
Any suggestions? Thanks in advance.