- Go to http://www.activestate.com/activeperl/downloads and download the version you want. In my case, I download the x86 version which is 5.12.3 at the time of making this tutorial. The Installation file is 24.6 MB. I was downloading with Opera which took about 2 minutes to download the file. The download files was named as ActivePerl-5.12.3.1204-MSWin32-x86-294330.msi
- Double click on the file and continue through the installation process as below. (I didn't want to do any change rather than keep pressing on Next)
- After finishing the installation, we can try to run a Perl script file to display Hello World. Open a text editor (Notepad is fine), type following code and save the file as hello.pl.
I use NotePad++ (free) which support syntax highlighting for Perl.Code: Select all
#!/usr/bin/perl print "Hello World!\n";
- Now open command prompt (Start Menu -> Run -> Type "cmd" and Enter) and change directory to the folder with your file. You can list down file using dir command to see whether the file exists.
- Now type hello.pl to run the Perl script file you have just created.
- If you want to run CGI scripts written using Perl under Apache Web Server, then have a look at How to configure Apache server to run Perl CGI files tutorial.
- If this is useful, don't forget to say thanks!