Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Using Perl subroutines in a Perl2Exe exe file

by Xaositect (Friar)
on Jun 30, 2005 at 18:00 UTC ( #471406=note: print w/replies, xml ) Need Help??


in reply to Re^2: Using Perl subroutines in a Perl2Exe exe file
in thread Using Perl subroutines in a Perl2Exe exe file

Well, you can only get the exe's return value if you are expecting a single integer back from the call.

my $returncode = system('bar.exe some params');
I think there are some rather harsh range limitations on the return code as well. That's probably not going to be good enough, so you're probably going to have to develop a common interface of some kind. The easiest would be to simply print to stdout, but it could be anything, like creating a file, or inserting into a database, or whatever.
my $stdout = qx("bar.exe some arguments");
Watch out for the fact that command-line arguments are processed differently depending on how many arguments you pass to the system or qx call.


Xaositect - Whitepages.com

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2020-10-29 06:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (269 votes). Check out past polls.

    Notices?