- or download this
@echo off
echo Hello from the DOS/Windows command interpreter
...
__END__
:batchend
echo Back from perl in the command interpreter
- or download this
rem -- somewhere inside the big batch file --
perl -e "exit 42"
...
:fail
pause
:end
- or download this
rem ...
rem (assuming this script is named setup.bat)
...
:fail
pause
:end
- or download this
rem ...
bin\perl.exe -e "exit($]!=5.014002)"
...
:fail
pause
:end
- or download this
rem ...
perl -x -S %0
...
:fail
pause
end
- or download this
#!perl
use strict;
...
die $err;
}
__END__