http://qs321.pair.com?node_id=11115124


in reply to Calling perl function from another perl script with different Active perl versions

You can't "call a function in a different Perl version". You need the different Perl version to run a full program with input arguments and capture its output to get the result.
#!perl5.6 $result = `D:/Perl/bin/perl D:/sample_program/p5.24.pl 25 10`;

#!perl5.24 my ($x, $y) = @ARGV; print $x * $y;
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]