1 / 10

PERL

PERL. History. Introduced in 1987 Created by Larry Wall Designed with the idea to incorporate parts of C, sed, awk, Unix shell scripting, and Lisp into one language. The second version of Perl was released 8 months after the first version. History.

iliana
Télécharger la présentation

PERL

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PERL

  2. History • Introduced in 1987 • Created by Larry Wall • Designed with the idea to incorporate parts of C, sed, awk, Unix shell scripting, and Lisp into one language. • The second version of Perl was released 8 months after the first version.

  3. History • Perl 3.0 was released 2 years after version 1.0 • Perl 4.0 was released in 1991 • Perl 5.0 (the version used today) was released in 1994. • Acts as both a procedural and object-oriented language.

  4. Perl Modules • Act as add-ons to the base Perl language (similar to packages in JAVA) • Anyone can write and distribute a Perl module. • There are over 500 modules available from the Comprehensive Perl Archive Network (CPAN) • Allow you to streamline tasks by providing a consistent API

  5. Network Programming • Very easy when you use the sockets interface. • Various levels at which you can work with the sockets interface, depending on your needs. • There exist modules to make the writing of various client and server applications much easier.

  6. CGI Module • Make writing CGI programs much easier. • Provides the ability to parse and generate HTML forms quickly • Works with Perl’s strength at being able to process text information. • Provides ways to keep a CGI program recently used to be available should it be needed a second time. • Termed: “Fast CGI”

  7. Example #!/usr/bin/perl use CGI; $cgi = new CGI; print $cgi->header(); print $cgi->start_html(); print "Hello, this is perl.";

  8. Strengths • Perl is good for text and file processing. Is strong in recognizing and manipulating text patterns. • Makes it useful in building CGI’s and in data mining. • Perl also has strong support for database access with its DBI (Database Integration Interface). • Perl provides capability to work with a number of other programming languages.

  9. Strengths • By borrowing from a lot of other languages Perl is designed to be an easy second language to learn. • Because Perl has roots as an Interpreted language you can test it in a more unfinished state. • Freely available

  10. Weaknesses • Designed more as a command-line based language, but does now include support for graphical user interfaces. • Because Perl is has interpreted language roots it can run slower than other languages.

More Related