1 00:00:01 --> 00:00:07 Welcome to the spoken tutorial on PERL Overview and Installation of Perl. 2 00:00:08 --> 00:00:09 In this tutorial, I'll take you through 3 00:00:10 --> 00:00:19 * PERL Overview along with Installation steps for PERL on Ubuntu-Linux and Windows operating system. 4 00:00:20 --> 00:00:20 For this tutorial, 5 00:00:21 --> 00:00:24 You must be connected to the Internet. 6 00:00:25 --> 00:00:29 You must have Ubuntu Linux and Windows Operating System. 7 00:00:30 --> 00:00:38 For demonstration purpose, I will be using Ubuntu Linux 12.04 and Windows 7 operating system. 8 00:00:39 --> 00:00:46 For Ubuntu Linux installation, you must have Synaptic Package Manager installed on your system. 9 00:00:47 --> 00:00:49 You must have administrative rights. 10 00:00:50 --> 00:00:56 And you must also have knowledge of using Terminal and Synaptic Package Manager in Ubuntu. 11 00:00:57 --> 00:01:02 If not, please see the Linux series available on the spoken tutorial website. 12 00:01:03 --> 00:01:06 Let me give you an overview of PERL Language. 13 00:01:07 --> 00:01:13 PERL is an acronym which stands for Practical Extraction and Reporting Language. 14 00:01:14 --> 00:01:17 It is a general-purpose programming language. 15 00:01:18 --> 00:01:22 It was originally developed for text manipulation. 16 00:01:23 --> 00:01:30 Now, it is used for web development, network programming, GUI development etc 17 00:01:31 --> 00:01:34 It is simple and very easy to understand. 18 00:01:35 --> 00:01:40 It does not have complex data structures like in C or JAVA. 19 00:01:41 --> 00:01:44 It is well known for pattern matching. 20 00:01:45 --> 00:01:48 And most importantly, PERL is an open source language. 21 00:01:49 --> 00:01:55 PERL comes pre-loaded on Ubuntu Linux 12.04 OS. 22 00:01:56 --> 00:02:00 There is no specific procedure to be followed for installation. 23 00:02:01 --> 00:02:06 Let us check the installed version of PERL on Ubuntu 12.04. 24 00:02:07 --> 00:02:14 Open the terminal by pressing ctrl + alt + t simultaneously on the keyboard. 25 00:02:15 --> 00:02:17 Then, type perl hyphen v 26 00:02:18 --> 00:02:20 and then press ENTER. 27 00:02:21 --> 00:02:25 You will get an output as displayed here, on the terminal. 28 00:02:26 --> 00:02:30 This output shows us the current installed version of PERL. 29 00:02:31 --> 00:02:35 In my case it is PERL 5.14.2 30 00:02:36 --> 00:02:42 Let us check the default PERL packages available on Ubuntu 12.04. 31 00:02:43 --> 00:02:47 Let's go to the launcher bar and click on Dash Home. 32 00:02:48 --> 00:02:50 In the search bar, type Synaptic. 33 00:02:51 --> 00:02:54 Synaptic Package Manager icon will be visible. 34 00:02:55 --> 00:02:56 Click on it. 35 00:02:57 --> 00:03:02 You will be prompted for your admin password, for Authentication purpose. 36 00:03:03 --> 00:03:07 Enter your admin password and click on Authenticate. 37 00:03:08 --> 00:03:12 Immediately, Synaptic Package Manager will load the package list. 38 00:03:13 --> 00:03:17 This may take some time depending on your internet and system speed. 39 00:03:18 --> 00:03:21 Once loaded, type Perl in Quick Filter. 40 00:03:22 --> 00:03:24 You will see a list of packages. 41 00:03:25 --> 00:03:32 The green color solid-filled checkbox before a PERL package indicates that it is already installed. 42 00:03:33 --> 00:03:40 Whereas checkboxes with star marks, indicate that you may need these packages, as well. 43 00:03:41 --> 00:03:46 These will help you to create a documentation or debug a PERL script. 44 00:03:47 --> 00:03:53 Install any of the missing packages, depending on your future use of PERL. 45 00:03:54 --> 00:03:59 Let us now go through the steps to install PERL on Windows Operating System. 46 00:04:00 --> 00:04:07 At the time of recording the Perl tutorials, version 5.14.2 was available in Windows. 47 00:04:08 --> 00:04:11 Now, there is a new PERL version available. 48 00:04:12 --> 00:04:18 I will be demonstrating the installation using the new PERL version 5.16.3 49 00:04:19 --> 00:04:25 All the PERL commands shown in the tutorials will work perfectly, on the new version as well. 50 00:04:26 --> 00:04:29 Open the browser on Windows Operating System, 51 00:04:30 --> 00:04:34 and in the address bar, type the URL as shown. 52 00:04:35 --> 00:04:38 You will be directed to the download page of PERL. 53 00:04:39 --> 00:04:43 Select the download version, as per your system specifications. 54 00:04:44 --> 00:04:48 In my case, It will be 32 bit version of PERL. 55 00:04:49 --> 00:04:55 Save the Perl msi file on your computer in a location of your choice. 56 00:04:56 --> 00:04:59 I have already saved it on my machine. 57 00:05:00 --> 00:05:06 Open the folder where you have downloaded PERL msi file and double-click on it. 58 00:05:07 --> 00:05:10 Then click on Run in the pop-up window. 59 00:05:11 --> 00:05:14 Click on Next in the setup wizard window. 60 00:05:15 --> 00:05:20 Accept the License Aggrement when prompted and then click on Next. 61 00:05:21 --> 00:05:24 Now, Custom Setup window will appear. 62 00:05:25 --> 00:05:30 This window lists all the PERL features that get installed. 63 00:05:31 --> 00:05:31 These are; 64 00:05:32 --> 00:05:32 Perl, 65 00:05:33 --> 00:05:38 PPM utilty, used to download and install Perl Modules on Windows 66 00:05:39 --> 00:05:43 Documentation which provides the documentation for Perl Modules 67 00:05:44 --> 00:05:46 And examples of Perl 68 00:05:47 --> 00:05:51 Keep all these default features and click on Next. 69 00:05:52 --> 00:05:58 A popup window for setting environmental variable and file extension will appear. 70 00:05:59 --> 00:06:02 Keep the check box checked, as shown here. 71 00:06:03 --> 00:06:06 Click on Next and then Install. 72 00:06:07 --> 00:06:10 This will start the installation of PERL. 73 00:06:11 --> 00:06:15 This may take some time depending on your internet speed. 74 00:06:16 --> 00:06:22 Once done, uncheck the Display Release Note checkbox and then click on Finish. 75 00:06:23 --> 00:06:26 This completes the installation of PERL on Windows. 76 00:06:27 --> 00:06:31 Now let us verify the installation. 77 00:06:32 --> 00:06:38 Go to Start menu and type cmd to open the command prompt. 78 00:06:39 --> 00:06:43 On the command prompt, type perl space hyphen v 79 00:06:44 --> 00:06:45 and press ENTER. 80 00:06:46 --> 00:06:49 You will see the installed version of PERL. 81 00:06:50 --> 00:06:56 If it doesn't show the version, repeat the above installation steps once again. 82 00:06:57 --> 00:07:01 Now let us execute a simple Hello Perl program. 83 00:07:02 --> 00:07:10 This file has been provided to you along with this tutorial, in the Code Files link, below the player. 84 00:07:11 --> 00:07:13 Please download and use this file. 85 00:07:14 --> 00:07:20 I had saved the file in users\Amol directory on my system. 86 00:07:21 --> 00:07:22 So, let's go there. 87 00:07:23 --> 00:07:27 Then type perl sampleProgram.pl 88 00:07:28 --> 00:07:29 and press Enter. 89 00:07:30 --> 00:07:34 Hello Perl will get printed on the command prompt,as shown. 90 00:07:35 --> 00:07:36 Let us summarize. 91 00:07:37 --> 00:07:39 In this tutorial, we have learrnt: 92 00:07:40 --> 00:07:42 Overview of PERL and, 93 00:07:43 --> 00:07:49 Installation instructions of PERL for Ubuntu Linux 12.04 and Windows 7. 94 00:07:50 --> 00:07:53 Watch the video available at the following link 95 00:07:54 --> 00:07:57 It summaries the Spoken Tutorial project 96 00:07:58 --> 00:08:02 If you do not have good bandwidth, you can download and watch it 97 00:08:03 --> 00:08:05 The Spoken Tutorial Project Team 98 00:08:06 --> 00:08:09 Conducts workshops using spoken tutorials 99 00:08:10 --> 00:08:14 Gives certificates to those who pass an online test 100 00:08:15 --> 00:08:17 For more details, please write to 101 00:08:18 --> 00:08:22 contact at spoken hyphen tutorial dot org 102 00:08:23 --> 00:08:28 Spoken Tutorial Project is a part of the Talk to a Teacher project 103 00:08:29 --> 00:08:37 It is supported by the National Mission on Education through ICT, MHRD, Government of India. 104 00:08:38 --> 00:08:49 More information on this Mission is available at spoken hyphen tutorial dot org slash NMEICT hyphen Intro. 105 00:08:50 --> 00:08:52 Hope you enjoyed this Perl tutorial. 106 00:08:53 --> 00:08:55 This is Amol Brahmankar signing off. 107 00:08:56 --> 00:09:01 Thanks for joining