Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by choroba (Cardinal)
on Apr 06, 2020 at 08:58 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11115124]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2024-04-24 09:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found