paperlined.org
dev
>
perl
>
win32
document updated 13 years ago, on Apr 11, 2011
There have been many ways used to make .bat or .cmd files out of Perl scripts, to emulate somewhat Unix's
shebang
mechanism.
utilities that will wrap .pl scripts as a .bat or .cmd
pl2bat
to make it use the proper Syntax highlighting in Vim, enable modelines in your local Vim, and add this to the first line:
@rem = '--*-Perl-*--
vim:syntax=perl:
it uses
this header
an explanation of what the @rem is (WAS) used for
runperl.bat
(instead of embedding the Perl script inside, you place the Perl script alongside the .bat file, with the same name as the .bat file)
you can also
create a file association for .pl, and twiddle the PATHEXT