Perl Kurtis Hage.

Slides:



Advertisements
Similar presentations
The Linux Operating System Lecture 6: Perl for the Systems Administrator Tonga Institute of Higher Education.
Advertisements

The Assembly Language Level
Chapter 1: Introduction
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Programming with Perl CSCE 330 Group presentation by: Robert Shannon Robert Shannon Ryan Mullaney Ryan Mullaney Anthony So Anthony So.
Drew Murphy Drew Ebelhar. History December 18, 1987 Creator- Larry Wall Objective: To develop a general purpose Unix scripting language to make report.
CS 104 Introduction to Computer Science and Graphics Problems Software and Programming Language (2) Programming Languages 09/26/2008 Yang Song (Prepared.
1 Chapter-01 Introduction to Computers and C++ Programming.
Using Data Active Server Pages Objectives In this chapter, you will: Learn about variables and constants Explore application and session variables Learn.
CMPT 120 How computers run programs Summer 2012 Instructor: Hassan Khosravi.
1 Perl Perl basics Perl Elements Arrays and Hashes Control statements Operators OOP in Perl.
Chapter 34 Java Technology for Active Web Documents methods used to provide continuous Web updates to browser – Server push – Active documents.
Michael Musick CSC 415. A Brief History of bash  Language was named in tribute to Steve Bourne’s shell  Brian Fox wrote the first versions of bash 
Lecture :2 1.  DEFENTION : Java is a programming language expressly designed for use in the distributed environment of the Internet. It was designed.
LING/C SC/PSYC 438/538 Lecture 2 Sandiway Fong. Today’s Topics Did you read Chapter 1 of JM? – Short Homework 2 (submit by midnight Friday) Today is Perl.
Sharda University P. K. Mishra (Asst.Prof) Department of Computer Science & Technology Subject Name: Programming Using C Sub Code: CSE-106 Programming.
Introduction to Perl Yupu Liang cbio at MSKCC
Perl Language Yize Chen CS354. History Perl was designed by Larry Wall in 1987 as a text processing language Perl has revised several times and becomes.
Prof. Alfred J Bird, Ph.D., NBCT Office – McCormick 3rd floor 607 Office Hours – Tuesday and.
Operating Systems Objective n The historic background n What the OS means? n Characteristics and types of OS n General Concept of Computer System.
Perl Tutorial. Why PERL ??? Practical extraction and report language Similar to shell script but lot easier and more powerful Easy availablity All details.
 2001 Prentice Hall, Inc. All rights reserved. Chapter 1 – Introduction to Computers, the Internet and the World Wide Web Outline 1.1Introduction 1.2What.
 History  Ease of use  Portability  Standard  Security & Privacy  User support  Application &Popularity Today  Ten Most Popular Programming Languages.
Ada, Scheme, R Emory Wingard. Ada History Department of Defense in search of high level language around Requirements drafted for the language.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Chapter 13 A & B Programming Languages and the.
OCR A Level F453: The function and purpose of translators Translators a. describe the need for, and use of, translators to convert source code.
Perl Ed Finegan. Overview of Pearl Perl is a high-level programming language written by Larry Wall. It derives from the C programming language and to.
PHP Programming Language. PHP is a server-side scripting language designed for web development but also used as a general- purpose programming language.
Chapter Goals Describe the application development process and the role of methodologies, models, and tools Compare and contrast programming language generations.
Unit 2 Technology Systems
Introduction to Perl: Practical extraction and report language
 2001 Prentice Hall, Inc. All rights reserved.
The language focusses on ease of use
Computer Organization and Design Pointers, Arrays and Strings in C
Chapter 10 Programming Fundamentals with JavaScript
User-Written Functions
Basic 1960s It was designed to emphasize ease of use. Became widespread on microcomputers It is relatively simple. Will make it easier for people with.
High and low level languages
Done By: Ashlee Lizarraga Ricky Usher Jacinto Roches Eli Gomez
Basic 1964 PC general purpose Imperative Small Easy to use.
Scope History of Ruby. Where can you use Ruby? General Features.
CSCI-235 Micro-Computer Applications
PERL.
PERL.
Introduction Python is an interpreted, object-oriented and high-level programming language, which is different from a compiled one like C/C++/Java. Its.
Cory Redmond Zachary Trim Jeffery Dumas
Chapter 2: System Structures
Programming Vocabulary
CS101 Introduction to Computing Lecture 19 Programming Languages
GLAST Release Manager Automated code compilation via the Release Manager Navid Golpayegani, GSFC/SSAI Overview The Release Manager is a program responsible.
1.1 Reasons to study concepts of PLs
Python is a general-purpose interpreted, interactive, object-oriented, and high-level programming language. It was created by Guido van Rossum during.
Array Array is a variable which holds multiple values (elements) of similar data types. All the values are having their own index with an array. Index.
Chapter 10 Programming Fundamentals with JavaScript
Chapter 2: System Structures
More Object-Oriented Programming
Shared Memory Programming
Chapter 11 Introduction to Programming in C
Mastering Memory Modes
(Computer fundamental Lab)
Lecture 8 Programming Paradigm & Languages. Programming Languages The process of telling the computer what to do Also known as coding.
Tonga Institute of Higher Education IT 141: Information Systems
CSC 253 Lecture 2.
JavaScript CS 4640 Programming Languages for Web Applications
Chapter 2: Operating-System Structures
Tonga Institute of Higher Education IT 141: Information Systems
The C Language: Intro.
Reasons To Study Programming Languages
Computer Programming (CS101) Lecture-02
Modern Collections Classes & Generics
Presentation transcript:

Perl Kurtis Hage

A Brief History of (Perl) Time 1.0 Released in 1987 -- Larry Wall Interpreted, high-level scripting language (written in C) 3.0 released in 1989 under GNU Public License Perl 5 & 6... Designed as a general-purpose Unix scripting language to make report processing easier. Larry Wall continues to oversee developement. Current version: 5.15.4 PEARL (Pre-existing language) vs Perl (remove a letter!)

Who Uses Perl? Bugzilla Amazon bbc.co.uk Craigslist IMDb LiveJournal Slashdot Ticketmaster etc.

Perl Pros Open-source distribution Portability Writability!!! Designed to make efficient use of expensive computer programmers Doesn't enforce a programming "style" Perl Slogans: "There's more than one way to do it" ; "Easy things should be easy and hard things should be possible." ; "Swiss Army Chainsaw of programming languages"

Perl Cons Readability (?) Bug tracking NOT tidy Automatic data-typing (also a plus?) [Lists and Scalars] do what you want, unless you want consistency. --Perl 5 Documentation"""In general, [lists and scalars] do what you want, unless you want consistency."In general, [lists and scalars] do what you want, unless you want consistency." Perl is not a tidy language; it includes many features, tolerates exceptions to its rules, and employs heuristics to resolve syntactical ambiguities. Because of the forgiving nature of the compiler, bugs can sometimes be hard to find.

Uses of Pearl, perl, Perl, and PERL PEARL -- Original name of the language after the Parable of the Pearl; was already a PEARL programming langauge. perl -- Typically a reference to Perl's compiler and how things are handled in the language itself Perl -- The name, and reference to, the actual langauge PERL -- SACRILEGE!! All-caps PERL is a sign of an outsider to the community; don't spell it this way.

Data Types Three main types $scalars @arrays %hashes Scalars: strings, numbers, references, filehandles. NO DECLARATION OF TYPE!! 0b = binary, 0x = hexadecimal, 0 = octal Arrays: Store scalars, accessed via integer index (start at 0!!), unless declared negative, in which case they start at the end and work backwards. ONE DIMENSIONAL ONLY!! Hashes: Store scalars that are accessed via a string index called a key.

Object-Oriented Perl Supports OO Programming Accomplished using packages//modules Example:

Concurrency Perl allows for Concurrency...sort of. Not designed with concurrency in mind Accomplished via a threading module Each thread runs as a seperate virtual machine; only data that is explicitly marked as shared can be passed between threads.

Subroutines Allows anonymous or named subroutines Declared with &, but not a mandatory declaration Code inside subroutine block "invisible" in scope outside of the block

Perl "Culture" and Community Involved, active community (CPAN) Perl "Golf" Perl Poetry Obfuscation contests CPAN = Comprehensive Perl Archive Network(CPAN) Golf = reducing number of keystrokes to generate perl code Poetry = Must be a compilable, runnable piece of perl code.

Powerful Perl Examples (RSA)

Powerful Perl Examples (DVD Copy Protection Descramble)