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


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