Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by Xaositect (Friar)
on Jun 30, 2005 at 18:00 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://471406]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-24 06:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found