How to compile Perl programs from within TSE?
1. -Always create a backup (e.g. copy) of the file compile.dat in your TSE main directory
2. Information about Perl
3. To learn Perl
4. To install Perl (on Microsoft Windows)
ChatGPT: "How to install Strawberry Perl on Microsoft Windows?"
To install Strawberry Perl on Microsoft Windows, you can follow these steps:
Run the downloaded executable file to begin the installation process.
Follow the prompts to choose the destination folder and any additional options you want to include in the installation.
Once the installation is complete, you can open the command prompt and type "perl -v" to confirm that Perl has been installed and to see the version number.
You can also add the path of the Perl installation to your system's PATH environment variable, so you can run Perl from any location on your system.
Note: If you are installing Strawberry Perl on a Windows operating system older than Windows 7, it's recommended to use the 32-bit version.
5. Create a .bat file COMPERL.BAT (e.g. save it in your TSE path and adapt the path to the conditions on your system)
@REM version 1.0.0.0.1
@REM [kn, ri, sa, 28-01-2023 19:35:15]
g:\language\computer\perl\strawberry\perl\bin\perl.exe %3 >%6 2>&1
@ECHO.
g:\language\computer\perl\strawberry\perl\bin\perl.exe %3
@ECHO.
@PAUSE
6. Add these TSE compiler options (e.g. run my chanblab.s and merge (or add it manually))
Extension=.py
Description=Perl: Knud
Command=COMPERL.BAT &name& &ext& &fn& &drive& &path& &output&
Output=Don't Clear Screen or Prompt After Shell
-Error=^.*Error: .+$\c
Error: Options=x
Error: Extra line (default empty line)=
-FileName=File "{.+}",
FileName: Options=xb
FileName: Tag=1
-Line=line {.+}
Line: Options=xb
Line: Tag=1
-Column=^[ \t]*\c\^
Column: Options=xb
Column: Tag=-2
-Message=^.*Error: {.#}
Message: Options=xb
Message: Tag=0
User Macro=
------------------------------------------------------------------------------
7. For Perl syntax highlight:
-Use the default perl.syn
-Computer: Editor: Text: TSE: Syntax: Highlight: Language: Computer: Perl: File: Source: perl.txt
8. Create a file helloworld.py (case insensitive) in TSE and compile it from TSE (e.g. <CTRL><F9>)
print "Hello world";
9. That will show
Hello world
10. Tested successfully in
Microsoft Windows Professional 10
TSE version 4.42
See also:
Contents of TSE's compile.hlp file