Do you know where your variables are? | |
PerlMonks |
Calling perl function from another perl script with different Active perl versionsby maria80e (Novice) |
on Apr 06, 2020 at 07:32 UTC ( [id://11115119]=perlquestion: print w/replies, xml ) | Need Help?? |
maria80e has asked for the wisdom of the Perl Monks concerning the following question: We have two versions of Active perl 5.6 and 5.24. We have web services which has to be executed on Active perl '5.24' versions(to adopt TLS 1.2 version) and this needs to be invoked from Active perl '5.6' version. We are using windows operating system. Steps followed : Caller code which is executed in 5.6 version invokes the 5.24 version using system /require command. Problem: How to call the 5.24 perl function(example: webservicecall(arg1){return "xyz") from 5.6 perl script through system command, require or etc..? Also how to get the return value of perl function 5.24? Note: Its a temporary work around to have two perl versions and the we have a plan to do upgrade it for higher version. Here perl version 5.6 installed in "C:\Perl\bin\perl\" and perl version 5.24 installed in "D:\Perl\bin\perl\".
I have written sample program for detail information to call perl 5.24 version from perl script 5.6 version. During execution I didn't get the expected output. How to get the "return $c" value & the "our $OUTFILE" value of p5_24.pl in p5_6.pl script? Note: The above is the sample program based on this I will modify the actual program using serialized data.
Back to
Seekers of Perl Wisdom
|
|