Hi Irfan,
Irfan Sayed wrote:
> I have one windows batch script in which i am calling one perl script. now what i want to do is if the exit status of that perl script is non zero then batch script should not continue executing further and if the exit status is zero then only it shud further execute.
>
> normally we use the value of $? to know the exit status of any system call but in this case how shud i inform to windows batch script that the perl script execution / exit status is non zero and stop execution further
What you seem to be asking for seems to be about the Windows batch
script and not Perl... I don't recall how Windows batch files check
the exit status of another program -- on the Perl side, just use exit
with a non-zero value.
Ray
|