I have a script gonnadie.pl

##gonnadie.pl
do_sth
die "blah blah";


gonnadie.pl is called by a DOS batch file x.bat

REM - x.bat
perl gonnadie.pl


x.bat is called by y.bat

REM - y.bat
x.bat

When y.bat is run, the OS treats x.bat ends sucessfully, how can I make y.bat dies 
when gonnadie.pl dies?


I tried:

if %errorlevel% == 255 echo error
else goto a

:a


It didn't help.


I am sorry for posting a non-pure-perl question here.

Would you please help?

Thanks,

Stan L





--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to