drpraveena has asked for the wisdom of the Perl Monks concerning the following question:
I have a C program (let's call it A) which calls a perl5 script (B) and it passes some parameters to it. The scope of the script is now changing and I need to pass more parameters to it. And in the future, even more. Instead of passing individual parameters to the script, I would like to pass a structure with all these parameters and keep extending the structure as and when I need to pass more parameters. This will keep the interface between the C code and Perl script constant (with just one parameter, the structure) and also keeps the code clean. How can I do this...? I have been searching the documentation, but unable to find the solution.
Thanks, Praveen
|
|---|