I need to execute a perl script from a c program. so I presume I have to use System call. I need to pass 2 arguments to the perl script.
The script should search & delete the line with the matching string.
It should return appropriate retVal back to the System code so that
the c program can check against it.
A functioning code snippet will be helpful since I am not much
fimiliar with perl.
Also is there any way to do this in C without creating a new file.
Thanks in advance for help and feedback.