Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Calling perl function from another perl script with different Active perl versions

by choroba (Archbishop)
on Apr 06, 2020 at 08:58 UTC ( #11115124=note: print w/replies, xml ) Need Help??


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]
  • Comment on Re: Calling perl function from another perl script with different Active perl versions
  • Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11115124]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2020-06-03 13:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (23 votes). Check out past polls.

    Notices?