Download and install Active Perl. The ActivePerl Community Edition is available in open source for Windows, Mac and Linux.
After Perl has been installed correctly, follow the steps below to run your Perl programs.
- Create a folder named “DTDP”. On the Windows machines in the computer lab at the Lipsius building, this folder should be created on the following location: P:\My Documents\DTDP
- Check whether you can open the code editor “Notepad++”. If it not yet available on your computer, download and install the program first.
- If your DTDP folder is located under P:\My Documents\DTDP, you can make use of the existing openPrompt.bat file. Download it and save it on the desktop.
- If your DTDP folder was created on a different location, open NotePad++ and copy and paste the following code. Supply the full path to your DTDP folder in between the brackets.
@ECHO OFF cmd.exe /K "[Full Path to the DTDP folder]:"
- Create a perl file, and save it in the root of the DTDP folder.
- Run the file in the Comman Prompt, by typing in “perl” followed by a space and the name of the program that you want to run.
In Mac OS X Lion 10.7 or later systems, you can follow the steps below:
- Open System Preferences > Keyboard > Shortcuts > Services
- Under Services, enable New Terminal at Folder, by placing a check in front of this function.
- Create a folder named “DTDP” on your computer.
- Locate or install a code editor. One good example is Brackets .
- In this code editor, write some Perl code which can be executed and save it in your DTDP folder.
- Open the Finder, and navigate to your DTDP folder. Click on the name of the folder to highlight it. Next, choose Finder > Services > New Terminal at folder
- Run your program in the Terminal, by typing in “perl” followed by a space and the name of the program.