ginju has asked for the wisdom of the Perl Monks concerning the following question:
Hello, My perl script is trying to compile some files and errors out if the compile failed. Precisely this is what I am doing:
some perl...
system (some compile command...)
if ($? != 0)
{
warn "Compile error...\n";
}
Some more perl...
This worked fine ona unix machine. I know for a fact that the files I am to compile are good, except maybe for a couple of them. Infact all the files compile ona Solaris machine (SYSTEM V UNIX release) But when I transfer the same perl script and the files to be compiled now on the windows NT machine, for every file I geta compile error. The perl scripts were modified to be compatible with NT. In the sense that the directory listing would be a\\b\\c.. instead of a/b/c.. as in unix. other than that there is not much to this script.
please advise
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Does $? work in NT?
by rchiav (Deacon) on Apr 26, 2001 at 03:46 UTC | |
|
(tye)Re: Does $? work in NT?
by tye (Sage) on Apr 26, 2001 at 18:27 UTC | |
|
Re: Does $? work in NT?
by diarmuid (Beadle) on Apr 26, 2001 at 14:53 UTC |