Google+

Saturday, July 6, 2013

Installing PERL on windows

In this tutorial I teach you how to install PERL on windows and run UR first sample Program.To install   PERL we need the Following package :

  ActivePerl 5.16.3 - Download (25.7 mb)

Now lets begin Installation of Active Perl.

  • Launch the downloaded file. 


Continue the installation......


Mark both the selections...and continue installation..
Now on the final window click install.

  
Now setup will install necessary components on your windows system.Click allow if windows alert prompt appears.After setup have installed necessary files on computer you may get a window like below. 
  • Now the actual work begins.
  • Go to Start -> Control Panel -> System -> Advanced system settings.
  • In the System properties window click Environment variable button.


In Environment variable window on system variables area scroll-down for path variable.you will see something as below,

Click on Edit button.

Now go to the location where Perl have been installed.It will be mostly " C:\Perl ".
Now copy the location from the location bar. " C:\Perl\bin " .Paste it in the Edit system variable -> variable value area.

Click OK. Thus you have installed PERL.
Now Lets try a sample program.Open a notepad and type following.

$i = " Hi!! info-unleashed.blogspot.com user...";
print $i;

Now save the file with " .pl " extension.

  • Now Open run and type " cmd " .You can open run using "win-key+r" combination.
  • Move to location where you have created the perl file.
  • Now type " perl filename.pl " in my case filename is " perl ".  


Thus you have installed PERL on your windows and tested your first program...!! 

No comments:

Post a Comment