in reply to Watching Perl die() under Win32

I personally recommend creating a batch file that has something like

perl.exe -w %1
pause

Whala.... as long as perl is set in your enviroment variables, all you have to do is run through the batch file instead of adding in code to each project. If you use Ultraedit, you can even plug this into a macro and it saves you lots of time-and headaches

Derek

Replies are listed 'Best First'.
Re: Re: Watching Perl die() under Win32
by Anonymous Monk on Apr 02, 2001 at 05:31 UTC
    Doesn't DOS shells (I use that term loosely) offer an errorlevel check? So, you could pause only if the process returns a non-zero exist status: perl.exe -w %1 if errorlevel 1 pause