Re: system call problem under Win32



Uwe Huniar wrote:
- system "prog.exe >> out";


Shame on you for not checking the return status of your system calls
From the docs:

You can check all the failure possibilities by inspecting $?
like this:

if ($? == -1) {
print "failed to execute: $!\n";
}
elsif ($? & 127) {
printf "child died with signal %d, %s coredump\n",
($? & 127), ($? & 128) ? 'with' : 'without';
}
else {
printf "child exited with value %d\n", $? >> 8;
}

Hope this helps

Mothra


.



Relevant Pages

  • Re: "It just come off"- Driver charged
    ... If so, then WHAT was the failure, EXACTLY? ... There was no way I could have inspected the failure point at any time (short of jacking up the trailer and inspecting it from underneath). ... is -not known- yet, so the citation was just because, well, when bad shit happens, people feel that -someone- must be to blame, so the driver in this case is a convenient scapegoat. ...
    (misc.transport.trucking)
  • Re: Starting to Stop Again
    ... drinking, with the promise, the resolve, the failure, the guilt, the shame. ... He Himself is the fuel our spirits were designed to burn, ...
    (alt.support.stop-smoking)
  • Re: (RSPoliticsW) Six words that will make the RW cabal k00k0ut.
    ... Obama resigns, leaves office in shame. ... "Failure is the opportunity to begin again more intelligently." ... - Henry Ford ...
    (rec.sport.pro-wrestling)
  • Re: Extracting images from PDF files...
    ... You should learn to understand what you read - or at least admit that your ... failure to understand is not something that should lead you to belitting ... it's a shame you have such difficulty understanding what you read. ...
    (comp.sys.mac.advocacy)
  • Re: How many tobaccos?
    ... I shall now skulk away in shame at my failure to meet this group's ... collection expectations. ... Prev by Date: ...
    (alt.smokers.pipes)