Introducing System Managers to Win32 Perl Programming Tim Christian College of Arts and Sciences Computing Support Services.

Slides:



Advertisements
Similar presentations
IF statement (i) Single statement. IF ( logical expression ) statement Example: read(*,*) a if (a. lt. 0) a = -a write(*,*) a Or read(*,*) a if (a < 0)
Advertisements

● Perl reference
CSC 4630 Perl 1. Perl Practical Extraction and Support Language A glue language under UNIX Written by Larry Wall Claimed to be the most portable of scripting.
Computer Programming for Biologists Class 9 Dec 4 th, 2014 Karsten Hokamp
Week Four Agenda Announcements Link of the week Review week three lab assignment This week’s expected outcomes Next lab assignment Break-out problems.
Introduction to Unix – CS 21 Lecture 11. Lecture Overview Shell Programming Variable Discussion Command line parameters Arithmetic Discussion Control.
Introduction to Perl Bioinformatics. What is Perl? Practical Extraction and Report Language A scripting language Components an interpreter scripts: text.
CSET4100 – Fall 2009 Perl Introduction Scalar Data, Operators & Control Blocks Acknowledgements: Slides adapted from NYU Computer Science course on UNIX.
CS311 – Today's class Perl – Practical Extraction Report Language. Assignment 2 discussion Lecture 071CS Operating Systems I.
CS Lecture 03 Outline Sed and awk from previous lecture Writing simple bash script Assignment 1 discussion 1CS 311 Operating SystemsLecture 03.
Practical Extraction & Report Language Picture taken from
Tutorial 10 Programming with JavaScript
Getting Started with Perl (and Excel) Biophysics 101 September 17, 2003 Griffin Weber (With material from Jon Radoff and Ivan Ovcharenko)
Guide To UNIX Using Linux Third Edition
Practical Extraction & Report Language PERL Joseph Beltran.
1 Operating Systems Lecture 3 Shell Scripts. 2 Shell Programming 1.Shell scripts must be marked as executable: chmod a+x myScript 2. Use # to start a.
1 Operating Systems Lecture 3 Shell Scripts. 2 Brief review of unix1.txt n Glob Construct (metacharacters) and other special characters F ?, *, [] F Ex.
Introduction to Perl & BioPerl Dr G. P. S. Raghava Bioinformatics Centre Bioinformatics Centre IMTECH, Chandigarh Web:
1 Perl Perl basics Perl Elements Arrays and Hashes Control statements Operators OOP in Perl.
Tutorial 10 Programming with JavaScript. XP Objectives Learn the history of JavaScript Create a script element Understand basic JavaScript syntax Write.
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.
Perl By Gabe and Ted. History Perl was created by Larry Wall while working at NASA’s Jet Propulsion Labs. Larry Wall also created patch which is in widespread.
Shell Programming. Introducing UNIX Shells  Shell is also a programming language and provides various features like variables, branching, looping and.
1 System Administration Introduction to Scripting, Perl Session 3 – Sat 10 Nov 2007 References:  chapter 1, The Unix Programming Environment, Kernighan.
Sharda University P. K. Mishra (Asst.Prof) Department of Computer Science & Technology Subject Name: Programming Using C Sub Code: CSE-106 Programming.
Perl Practical(?)‏ Extraction and Report Language.
Week Four Agenda Announcements Link of the week Review week three lab assignment This week’s expected outcomes Next lab assignment Break-out problems.
Copyright © 2010 Certification Partners, LLC -- All Rights Reserved Perl Specialist.
Just a Little PHP Programming PHP on the Server. Common Programming Language Features Comments Data Types Variable Declarations Expressions Flow of Control.
Sed, awk, & perl CS 2204 Class meeting 13 *Notes by Mir Farooq Ali and other members of the CS faculty at Virginia Tech. Copyright 2003.
Introduction to Perl Yupu Liang cbio at MSKCC
Books. Perl Perl (Practical Extraction and Report Language) by Larry Wall Perl 1.0 was released to usenet's alt.comp.sources in 1987 Perl 5 was released.
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.
Perl: Lecture 1 The language. What Perl is Merger of Unix tools – Very popular under UNIX – shell, sed, awk Programming language – C syntax Scripting.
Programming Languages Meeting 14 December 9/10, 2014.
CS4710 Why Progam?. Why learn to program? Utility of programming skills: understand tools modify tools create your own automate repetitive tasks automate.
7 1 User-Defined Functions CGI/Perl Programming By Diane Zak.
Prof. Alfred J Bird, Ph.D., NBCT Office – McCormick 3rd floor 607 Office Hours – Tuesday and.
(A Very Short) Introduction to Shell Scripts CSCI N321 – System and Network Administration Copyright © 2000, 2003 by Scott Orr and the Trustees of Indiana.
Introduction to Perl William G. Dishman CUR/516 November 5, 2014.
Copyright © 2003 ProsoftTraining. All rights reserved. Perl Fundamentals.
Chapter Twelve sed, awk & perl1 System Programming sed, awk & perl.
Getting started in Perl: Intro to Perl for programmers Matthew Heusser – xndev.com - Presented to the West Michigan Perl User’s Group.
Perl COEN 351  Thomas Schwarz, S.J Perl Scripting Language Developed by Larry Wall 1987 to speed up system administration tasks. Design principles.
Introduction to Perl October 4, 2004 Class Meeting 7 * Notes on Perl by Lenwood Heath, Virginia Tech © 2004.
Department of Electrical and Computer Engineering Introduction to Perl By Hector M Lugo-Cordero August 26, 2008.
Agenda Positional Parameters / Continued... Command Substitution Bourne Shell / Bash Shell / Korn Shell Mathematical Expressions Bourne Shell / Bash Shell.
Introduction to Perl. What is Perl Perl is an interpreted language. This means you run it through an interpreter, not a compiler. Similar to shell script.
Tutorial 10 Programming with JavaScript. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Learn the history of JavaScript.
Computer Programming for Biologists Class 4 Nov 14 th, 2014 Karsten Hokamp
PERL By C. Shing ITEC Dept Radford University. Objectives Understand the history Understand constants and variables Understand operators Understand control.
Tutorial 10 Programming with JavaScript. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Learn the history of JavaScript.
The Perl Debugger Issac Goldstand Mirimar Networks
PZ02CX Programming Language design and Implementation -4th Edition Copyright©Prentice Hall, PZ02CX - Perl Programming Language Design and Implementation.
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.
JavaScript and AJAX 2nd Edition Tutorial 1 Programming with JavaScript.
Introduction to SQL Server Automation with Powershell by Chris Sommer.
1 Lecture 8 Shell Programming – Control Constructs COP 3353 Introduction to UNIX.
Organization of Programming Languages Meeting 37 April 18, 2016.
The full name of PERL is Practical extraction and report language. It is similar to shell script and lot easier & powerful language. Perl is free to download.
Introduction to Perl: Practical extraction and report language
Perl Programming Language Design and Implementation (4th Edition)
Programming Basics Web Programming.
Perl for Bioinformatics
Control Structures: for & while Loops
CSC 352– Unix Programming, Fall 2012
Perl Programming Dr Claire Lambert
CIS 136 Building Mobile Apps
INTRODUCTION to PERL PART 1.
Presentation transcript:

Introducing System Managers to Win32 Perl Programming Tim Christian College of Arts and Sciences Computing Support Services

Welcome! This course: n is for people who know some other programming language and n should enable you to manage the network, write reports, and write CGI scripts using Perl.

Course Outline n About Perl n Installing Perl n Writing Perl n Debugging Perl n Extending Perl n Applying Perl Using Regular Expressions n Applying Perl for CGI

About Perl n Larry Wall n If you were to write a language that anybody could use, what would be some characteristics of that language?

Installing Perl n Normally, from: n For a limited time from n After installing Perl, how do you get help? n Your personal task before next class: Install Perl on your computer at work and/or home.

Writing Perl n Comments n Statements n Programs n Data Types n Data Type Operators n Flow Control n File Operators

Comments n First line comments, like: #!/usr/bin/perl n Other Comments n Example: ment.pl

Statements n Every part of a Perl script (except comments) consists of a statement. n Contain one or more function calls, L/Rvalues, and flow controls. n End with a semicolon (;). n Perl ignores all white space. n Example: ement.pl

Programs n Running from the command line. n Running from a file. n Example:

Data Types n Scalars: ar.pl n Arrays: y.pl n Associative arrays: ocarray.pl n The $_ variables.

Data Types Comparators n To compare characters: eq, ne, lt, gt, le, ge n To compare numbers: ==, !=,, = n Mnemonic: Always use characters to compare characters. n More: local/doc/manual/html/pod/perlop.h tml

Flow Control n If/else: n For: n Foreach: n Subroutines: ne.pl

File Operators n Special <> notation for the identifier. n Useful functions: open, close n Uses redirection symbols: >, >, <<, | n Example:

Debugging Perl n What is a debugger? n What is the best debugger? n Perl’s -d switch.

Extending Perl n Functions: local/doc/manual/html/pod/perlfunc.html n Modules: n Getting help with modules. n Using Modules.

Account Builder n Use flow control and subroutines and good coding style to: u Read in a file of names (like “Tim Christian”). u Create 8 character IDs based on those names until does not exist. n Hint: You might want to check out the length() and substr() functions.

Next Class n Bring your account builder solution to class n Regular expressions n Applying regular expressions in Perl