Subject: | pl2bat not right for me |
Hi,
Sorry if this has already been reported/fixed - rt.cpan.org (apparently)
doesn't want to let me view existing reports.
With 5.14.2.1.beta_1 portable, batch files generated by Strawberry's
pl2bat.bat begin with:
@rem = '--*-Perl-*--
@echo off
if "%OS%" == "Windows_NT" goto WinNT
"%~dp0perl.exe" -x -S "%0" %1 %2 %3 %4 %5 %6 %7 %8 %9
goto endofperl
:WinNT
"%~dp0perl.exe" -x -S %0 %*
For me that "%~dp0perl.exe", which I think comes directly from
Strawberry's pl2bat.bat, doesn't work. It generates the following error
whenever the generated batch file (ppm.bat in this instance) is run:
'"C:\_32\strawberry514\perl\site\bin\perl.exe"' is not recognized as an
internal or external command, operable program or batch file.
One problem is that the path is wrong. The specified file does not
exist, though C:\_32\strawberry514\perl\bin\perl.exe does exist.
I suspect that the additional quotes might also make the command
un-runnable, once the path has been fixed.
My fix has been to replace '"%~dp0perl.exe"' with 'perl', which is in
keeping with the way that pl2bat.bat does things on the perls that I
have built.
Cheers,
Rob