Perl is not limited to a Unix environment. The people at Active State have developed several interpreters that run in the windows environment which include: Perl, Tcl, and Python. They also provide a few tools for PHP and Ruby.
Go to www.activestate.com.
In the blue box on the left hand side of the screen, click on one of the current releases.
Fill in the fields and click next. Click continue to download to take you to a screen where you can choose what type of operating system you are using.
Click on the MSI link in the windows section. Click ok to save to disk.
Double click the file that you downloaded to start the install process.
Click next and then choose to accept the terms and click next a few more times to do the default install.
The install program should now be copying files to C:\Perl directory on your computer. When this completes click finish.
The release notes will pop up in a web browser. You can safely close this because the scope of this course will not require you to be completely aware of the current status of the ActivePerl product.
Congratulations, You have completed the perl interpreter install on windows.
You will notice that you did not recieve a new desktop icon. The execution of perl scripts in windows is through the use of file extensions and the dos command prompt.
So whats the difference? Not much.
When creating or saving files in Windows, make sure you use the .pl extensions and leave out
This will become clearer after we do a simple program.
Ok lets get started.
Type the following.
# Simple Program
print 'Hello world.'; # Print a message
Save the program as C:\hello.pl and exit Notepad.
Open a command prompt (start->run, type cmd, click ok).
type cd c:\
type perl hello.pl
NOTE: If you had an issue saving the file to the correct location, or with the correct file extension, spend some time with windows and learn how to copy, move, and rename files. Use these tools to get the file in the appropriate location if necessary.
added by email@example.com