PERL/C2/Overview and Installation of PERL/English

From Script | Spoken-Tutorial
Jump to: navigation, search

Title Of Script: PERL Overview and Installing Perl on WIndows and Linux

Author: Amol Brahmankar

Keywords: PERL Overview, Installing Perl video tutorial, Perl on Windows, Perl on Ubuntu Linux.


Visual Cue
Narration
Slide Welcome to the spoken tutorial on
  • PERL Overview and
  • Installation of Perl.


Slide: Learning Objectives In this tutorial, I'll take you through
  • PERL Overview along with
  • Installation steps for PERL on Ubuntu-Linux and Windows operating system.


Slide: System Requirements For this tutorial,
  • You must be connected to the Internet.
  • You must have either Ubuntu Linux and Windows Operating System.

For demonstration purpose, I will be using Ubuntu Linux12.04 and Windows 7 operating system.

Slide: Prerequisites For Ubuntu Linux installation, you must have Synaptic Package Manager installed on your system.


You must have administrative rights.

And you must also have knowledge of using Terminal and Synaptic Package Manager in Ubuntu.

If not, please see the Linux series available on the spoken tutorial website.

Let me give you an overview of PERL Language.
Slide * PERL is an acronym which stands for Practical Extraction and Reporting Language.
  • It is a general-purpose programming language.
  • It was originally developed for text manipulation.
  • Now, it is used for web development, network programming, GUI development etc
  • It is simple and very easy to understand.


Slide * It does not have complex data structures like C or JAVA.
  • It is well known for pattern matching.
  • And most importantly, PERL is an open source language.


Slide

Installing PERL on Ubuntu 12.04 Operating System

PERL comes pre-loaded on Ubuntu Linux 12.04 OS.


Therefore, there is no specific procedure to be followed for installation.

Let us check the installed version of PERL on Ubuntu 12.04.



Press CTRL+ALT+T keys Open the terminal by pressing ctrl + alt + t simultaneously on the keyboard.
Type perl -v >> Press Enter Then, type perl hyphen v


and then press ENTER.

Highlight output on terminal. You will get an output as displayed here, on the terminal.


This output shows us the current installed version of PERL.


In my case it is PERL 5.14.2

Let us check the default PERL packages available on Ubuntu 12.04.
Go to the launcher bar>> Click on Dash Home. Let's go to the launcher bar and click on Dash Home.
Type Synaptic in the search bar In the search bar, type Synaptic.
Click on Synaptic Package Manager icon. Synaptic Package Manager icon will be visible.

Click on it.

Enter admin password >> click on Authenticate. You will be prompted for your admin password, for Authentication purposes.


Enter your admin password and click on Authenticate.

Immediately, Synaptic Package Manager will load the package list.


This may take some time depending on your internet and system speed.

Type Perl in Quick Filter. Once loaded, type Perl in Quick Filter.


You will see a list of packages.

Point to the green color solid-filled checkboxes The green color solid-filled checkbox before a PERL package indicates that it is already installed.
Point to checkboxes with star marks Whereas checkboxes with star marks, indicate that you may need these packages, as well.


These will help you to create a documentation or debug a PERL script.

Install any of the missing packages, depending on your future use of PERL.
<<PAUSE>>
Let us now go through the steps to install PERL on Windows Operating System.
Slide

Installing PERL on Windows Operating System

* At the time of recording the Perl tutorials, version 5.14.2 was available in Windows.
  • Now, there is a new PERL version available.
  • I will be demonstrating the installation using the new PERL version 5.16.3
  • All the PERL commands shown in the tutorials will work perfectly, on the new version as well.


On the browser>> in the address bar, type the URL Open the any web browser in your Windows machine and in the address bar, type the URL as shown.
New webpage opens. You will be directed to the download page of PERL.
Point to 32 bit version of PERL. Select the download version, as per your system specifications.


In my case, I will select 32 bit version of PERL.

Point to Save button. Save the Perl msi file on your computer in a location of your choice.


I have already saved it on my machine.

Go to the saved folder>> doubleclick on the msi file. Open the folder where you have downloaded PERL msi file and double-click on it.
Click on Run Then click on Run in the pop-up window.
Click on Next Click on Next in the setup wizard window.
Click on Agree>> click on Next. Accept the License Aggrement when prompted and then click on Next.
Now, Custom Setup window will appear.


This window lists all the PERL features that get installed.

Point to each one as per narration These are;
  • Perl,
  • PPM utilty, used to download and install Perl Modules on Windows
  • Documentation which provides the documentation for Perl Modules
  • And examples of Perl


Click on Next Keep all these default features and click on Next.
Point to the checkbox. A popup window for setting environmental variable and file extension will appear.


Keep the check box checked, as shown here.

Click on Next >> Install. Click on Next and then Install.
This will start the installation of PERL.


This may take some time depending on your internet speed.

Uncheck the Display Release Note checkbox >> click on Finish. Once done, uncheck the Display Release Note checkbox and then click on Finish.
This completes the installation of PERL on Windows.
.<PAUSE>


Now let us verify the installation.

Click on Start menu >> Type cmd Go to Start menu and type cmd to open the command prompt.
Type perl space hyphen v


>> press ENTER.

On the command prompt,

type perl space hyphen v


and press ENTER.

You will see the installed version of PERL.
If it doesn't show the version, repeat the above installation steps once again.
<PAUSE>


Now let us execute a simple Hello Perl program.


This file has been provided to you along with this tutorial, in the Code Files link, below the player.


Pls download and use this file.

In the command prompt window >> type cd users\Amol I had saved the file in users\Amol directory on my system. So, let's go there by typing.


cd user\Amol

Type perl sampleProgram.pl


>> press Enter

Then type perl sampleProgram.pl


and press Enter.

Hello Perl will get printed on the command prompt, as shown.


<PAUSE>



Slide: Summary Let us summarize.

In this tutorial, we have learrnt:

  • Overview of PERL and
  • Installation instructions of PERL for Ubuntu 12.04 and Windows 7.


About the Project Watch the video available at the following link


It summaries the Spoken Tutorial project


If you do not have good bandwidth, you can

download and watch it

Spoken Tutorial Workshops The Spoken Tutorial Project Team


Conducts workshops using spoken tutorials


Gives certificates to those who pass an online

test


For more details, please write to

contact at spoken hyphen tutorial dot org

Acknowledgment


http://spoken-tutorial.org\NMEICT-Intro

Spoken Tutorial Project is a part of the Talk to a

Teacher project


It is supported by the National Mission on

Education through ICT, MHRD, Government of India.


More information on this Mission is available

spoken hypen tutorial dot org slash NMEICT hyphen Intro

Hope you enjoyed this Perl tutorial.

This is Amol Brahmankar signing off.


Thanks for joining

Contributors and Content Editors

AmolBrahmankar, PoojaMoolya