Re: TECH: schcompile (Was: More Þrjótran)
From: | Carsten Becker <carbeck@...> |
Date: | Saturday, April 22, 2006, 9:56 |
From: "Benct Philip Jonsson" <bpj@...>
Sent: Thursday, April 20, 2006 9:58 AM
>> It should be portable, but I cannot test it.
>
> I would be very thankful if *someone* with the know-how
> and the means would be willing to do the work...
I don't "speak" Perl, but I know that at least simpler
scripts work on Windows when you change the path in the
first line from /usr/bin/perl to
$YOUR_PERL_INSTALLATION_FOLDER$\perl.exe, i.e. you just give
the path where your perl.exe is saved. To invoke the
program, you need to open a command shell, go to the path
where your script is and type _perl script.pl_. In case
you've not saved the path to perl.exe in the PATH system
variable, you need to go to the directory of perl.exe, e.g.
_c:\program files\perl\bin_ and invoke perl from there. Then
of course, you must give the whole path of the script you
want to execute.
Again, but I hope better understandable:
- Assuming that perl.exe is installed in C:\perl\bin
- Assuming that the script "script.pl" is in C:\MyDocs\
1. Change the first line of "script.pl" to
#!C:\perl\bin\perl.exe
2. Open a command shell (in Start/Programs/Accessories for
XP), if in doubt, just open Start/Run and type in cmd.exe
3. 1. a. Enter cd C:\MyDocs
b. Enter perl script.pl
2. a. Enter cd C:\perl\bin
b. Enter perl C:\MyDocs\script.pl
3. a. Enter C:\perl\bin\perl.exe C:\MyDocs\script.pl
Good luck,
Carsten
--
"Miranayam kepauarà naranoaris." (Kalvin nay Hobbes)
Palayena, Yangtim 22, 2315, ea 13:28:19 pd
Reply