Listing 1.
pl2bat: both a Perl script and a DOS batch file
Steve Lidie

Installing Perl and Perl/Tk on Win32
The Perl Journal, Summer 1996
 

@rem = '--*-Perl-*--
@echo off
if "%OS%" == "Windows_NT" goto WinNT
perl -x -S "%0" %1 %2 %3 %4 %5 %6 %7 %8 %9
goto endofperl
:WinNT
perl -x -S "%0" %*
if NOT "%COMSPEC%" == "%SystemRoot%\system32\cmd.exe" goto endofperl
if %errorlevel% == 9009 echo You do not have Perl in your PATH.
goto endofperl
@rem ';
#!/usr/local/bin/perl -w
#line 14
#
... (Perl code for FROG excised)

__END__
:endofperl