in reply to system call returns incorrect in windows

That should work on Windows.

>perl -E"say system('perl -e exit($ARGV[0]) 0'); say $?; say ${^CHILD_ +ERROR_NATIVE}" 0 0 0 >perl -E"say system('perl -e exit($ARGV[0]) 1'); say $?; say ${^CHILD_ +ERROR_NATIVE}" 256 256 256

Please provide more info (e.g. perl -V).

What's ant's file extension (e.g. .exe)? (Not sure if that matters.)

Replies are listed 'Best First'.
Re^2: system call returns incorrect in windows
by ericaQA (Novice) on Apr 06, 2018 at 18:59 UTC

    Hi, yes ant in this case would be ant.exe

    E:\>perl -v This is perl, v5.10.1 built for MSWin32-x86-multi-thread

    So not the very latest but not ancient. Latest from ActiveState is 5.26.1.2601. I'll see if I can upgrade and notice a difference

    Edit: I'm getting the same results after upgrading to the latest version, weird that