PERL - complete

PERL - complete - Introduction to Perl Programming Module 1...

Info iconThis preview shows pages 1–13. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Introduction to Perl Programming Module 1 Perl Basics What is Perl? Perl is a general-purpose programming language, and can be used for practically any programming task any other high-level language can be used for. However, Perl is usually thought of as a glue language, so called because it binds things together (such as tying databases to Web pages, converting files from one format to another, and so on). Perl is very flexible and is currently available on over two dozen operating system platforms Perl The name Perl comes from Practical Extraction and Report Language. Perl has many features borrowed from other programming languages. The Perl system uses an interpreter, called perl. Usually Perl and perl are considered to be the same thing for practical purposes. Installing Perl Versions of Perl The current versions of Perl are all in the 5.X and 6.X series (6.X was released in 2001). If you have an older version of Perl (such as Perl 4.X), you should upgrade it as many changes were made between releases. Perl 4.X was a very buggy release of Perl and should not be used. Also, many Perl programs designed for 5.X will not work with 4.X. Maybe Perl is already installed Many operating systems (Linux and UNIX notably, but also Windows NT Resource Kit) come with Perl installed. You can easily check whether Perl is loaded on your system by opening a console or terminal window and issuing the command: perl v If you get a version number, Perl is installed. If you get an error message about command not found (or something similar), Perl is not installed. Where to get Perl Perl is available free of charge from many public sites.There are several releases of Perl available for different operating systems, so make sure you get a current release. For Linux or UNIX systems, visit perl.com for the latest releases For Windows systems, you can compile the Perl source code yourself (a hassle) or download a preconfigured Windows release at activestate.com For Macintosh, visit macperl.com for MacPerl Perl documentation Every release of Perl comes with documentation in a set of files. Most releases have over 1,700 pages of documentation included in reference books, user guides, FAQs, and so on. On most operating systems, a utility called perldoc is installed as part of the Perl system. The perldoc utility can search for and format Perl documentation for you. To use perldoc to look up the basic syntax for perl, open a terminal or console and issue the command: perldoc perl More on perldoc The Perl documentation is divided into parts by purpose: perlfunc (Perl functions) perlfaq (Perl FAQs) perlop (Perl operators) To search for a particular keyword, use the tf options. For example to look up the print keyword: perldoc tf print To search the FAQs use q as an option: perldoc q free A first Perl program What you need When you have installed Perl on your system, all...
View Full Document

Page1 / 302

PERL - complete - Introduction to Perl Programming Module 1...

This preview shows document pages 1 - 13. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online