Help for this page

Select Code to Download


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