PERL Course Content

PERL Course Content

Perl Training and Tutorials. Figure out how to program in Perl, the adaptable, broadly useful programming dialect. ... Take in the nuts and bolts of Perl grammar, from conditionals, circles, and information structures to general articulations, capacities, and question arranged programming, and figure out how to introduce and alter Perl contents.

DAY 1

 

 Introduction to Perl

 

Installing Perl

 

Perl Interpretor

 

Perl - Hello World

 

Command line switches

 

 Datatypes

 

Scalars

 

Arrays

 

Hashes

 

Typeglobs

 

Symbol tables

 

 Operators and Precedence, Conditional Statements and Loops

 

 If statement

 

 Reverse If statement: unless

 

 For loop

 

 Foreach loop

 

 While loop

 

 Reverse while loop: until

 

 Do while loop

 

 Looping elements using map()

 

 Searching elements using grep()

 

 Skipping to next loop iteration

 

File Handling

 

 Open – open a file

 

 Close – close a file

 

 Print – print to a file

 

 Write – write to a file

 

 Read – read input byte by byte

 

 Readline – read a line of data

 

 Getc – get a character

 

 Seek – set current position in a file

 

 Tell – get the current position in a file

 

 Stat – get file status

 

 Rename – rename a file

 

 Unlink – delete files

 

 Opendir – open a directory handle

 

 Closedir – close a directory handle

 

 Readdir – read directory entry

 

 Chdir – change working directory

 

 Mkdir - make a directory

 

 Rmdir – remove a directory

 

Perl file test operators

 

DAY 2

 

 Regular Expressions

 

Creating regex

 

Character classes

 

Alternative match patterns

 

Quantifiers

 

Assertions

 

Backreferences

 

Modifiers – m// and s///

 

Translating strings with tr///

 

DAY 3

 

 Subroutines and built-in functions

 

Declaring subroutines

 

Defining subroutines

 

Calling subroutines

 

Checking whether a subroutine exists before calling it

 

Reading arguments passed to subroutines

 

Using a variable number of arguments

 

Setting default values for arguments

 

Returning values from subroutines

 

Setting scope with my

 

Creating temporary variables with local

 

Determining difference between my and local

 

Setting scope with our

 

Getting subroutines name and caller

 

Perl built-in functions

 

a) Chr – character from character code

 

b) Each – hash key/value pairs

 

c) Eval – evaluate perl code at runtime

 

d) Exists – check hash key

 

e) Grep – search for matching elements

 

f) Index – position of substring

 

g) Int – truncate to integer

 

h) Join – join list into string

 

i) Keys – get hash keys

 

j) Lc – convert to lowercase

 

k) Lcfirst – convert first character to lowercase

 

l) Length – get string length

 

m) Reverse – Reverse a list

 

n) Sort – sort list.

 

o) Split – split a string into an array of strings

 

p) Uc – convert to uppercase

 

q) Ucfirst – uppercase first character

 

r) Values – get hash values

 

References and Perl predefined variables

 

Hard References

 

Symbolic References

 

The Arrow Operator

 

Anonymous Arrays, Hashes, and Subroutines.

 

Dereferencing references

 

Dereferencing with the arrow operator

 

Omitting the arrow operator

 

Predefined variables:

 

a) $’ – Postmatch string

 

b) $” – Output field separator

 

c) $$ - Process Number

 

d) $& - Most Recent Pattern Match

 

e) $* - Multiline matching

 

f) $, - Output field separator

 

g) $/ - Input record separator

 

h) $? – Status of last pipe close, backtick command, or system call

 

i) $@ - Error from last eval

 

j) $\ - Output record separator

 

k) $_ - Default variable

 

l) $` - Prematch string

 

m) $+ - Last parantheses match

 

n) $0 – Script name

 

o) $ARGV – Name of current <> input file

 

p) $n – Pattern match number

 

q) %:: - Main symbol table

 

r) %ENV – Environment variables

 

s) %INC – Included files

 

t) @_ - Subroutine Arguments

 

u) @ARGV – Command line arguments

 

v) @INC – Location of scripts to evaluate

 

DAY 4

 

Creating packages and modules

 

What are packages ?

 

“use” and “require”

 

Compile time and Run-time

 

Introduction to OOPS

 

Class Creation

 

Bless function

 

Inheritance

 

UNIVERSAL class

 

AUTOLOAD function

 

DAY 5

 

Perl DBI

 

Establish Database Connection

 

SELECT Operation

 

Fetching data

 

INSERT Operation

 

Using BIND Values

 

READ Operation

 

UPADATE Operation

 

DELETE Operation

 

PREPARE & EXECUTE

 

do statement

 

COMMIT Operation

 

Using NULL values

 

Error handling

 

Disconnecting Database

 

Standard Modules

 

Env

 

GetOpt

 

lib

 

subs

 

vars

 

strict

 

File::Copy

 

File::Find

 

File::Path

 

Session VII

References and Perl predefined variables

 

Hard References

 

Symbolic References

 

The Arrow Operator

 

Anonymous Arrays, Hashes, and Subroutines.

 

Dereferencing references

 

Dereferencing with the arrow operator

 

Omitting the arrow operator

 

Predefined variables:

 

a) $’ – Postmatch string

 

b) $” – Output field separator

 

c) $$ - Process Number

 

d) $& - Most Recent Pattern Match

 

e) $* - Multiline matching

 

f) $, - Output field separator

 

g) $/ - Input record separator

 

h) $? – Status of last pipe close, backtick command, or system call

 

i) $@ - Error from last eval

 

j) $\ - Output record separator

 

k) $_ - Default variable

 

l) $` - Prematch string

 

m) $+ - Last parantheses match

 

n) $0 – Script name

 

o) $ARGV – Name of current <> input file

 

p) $n – Pattern match number

 

q) %:: - Main symbol table

 

r) %ENV – Environment variables

 

s) %INC – Included files

 

t) @_ - Subroutine Arguments

 

u) @ARGV – Command line arguments

 

v) @INC – Location of scripts to evaluate

Session VIII

Creating packages and modules

 

What are packages ?

 

“use” and “require”

 

Compile time and Run-time

 

Introduction to OOPS

 

Class Creation

 

Bless function

 

Inheritance

 

UNIVERSAL class

 

AUTOLOAD function

Session IX

Perl DBI

 

Establish Database Connection

 

SELECT Operation

 

Fetching data

 

INSERT Operation

 

Using BIND Values

 

READ Operation

 

UPADATE Operation

 

DELETE Operation

 

PREPARE & EXECUTE

 

do statement

 

COMMIT Operation

 

Using NULL values

 

Error handling

 

Disconnecting Database

Session X

Standard Modules

 

Env

 

GetOpt

 

lib

 

subs

 

vars

 

strict

 

File::Copy

 

File::Find

 

File::Path

     

PERL Course Content

DAY 1

 

 Introduction to Perl

 

Installing Perl

 

Perl Interpretor

 

Perl - Hello World

 

Command line switches

 

 Datatypes

 

Scalars

 

Arrays

 

Hashes

 

Typeglobs

 

Symbol tables

 

 Operators and Precedence, Conditional Statements and Loops

 

 If statement

 

 Reverse If statement: unless

 

 For loop

 

 Foreach loop

 

 While loop

 

 Reverse while loop: until

 

 Do while loop

 

 Looping elements using map()

 

 Searching elements using grep()

 

 Skipping to next loop iteration

 

File Handling

 

 Open – open a file

 

 Close – close a file

 

 Print – print to a file

 

 Write – write to a file

 

 Read – read input byte by byte

 

 Readline – read a line of data

 

 Getc – get a character

 

 Seek – set current position in a file

 

 Tell – get the current position in a file

 

 Stat – get file status

 

 Rename – rename a file

 

 Unlink – delete files

 

 Opendir – open a directory handle

 

 Closedir – close a directory handle

 

 Readdir – read directory entry

 

 Chdir – change working directory

 

 Mkdir - make a directory

 

 Rmdir – remove a directory

 

Perl file test operators

 

DAY 2

 

 Regular Expressions

 

Creating regex

 

Character classes

 

Alternative match patterns

 

Quantifiers

 

Assertions

 

Backreferences

 

Modifiers – m// and s///

 

Translating strings with tr///

 

DAY 3

 

 Subroutines and built-in functions

 

Declaring subroutines

 

Defining subroutines

 

Calling subroutines

 

Checking whether a subroutine exists before calling it

 

Reading arguments passed to subroutines

 

Using a variable number of arguments

 

Setting default values for arguments

 

Returning values from subroutines

 

Setting scope with my

 

Creating temporary variables with local

 

Determining difference between my and local

 

Setting scope with our

 

Getting subroutines name and caller

 

Perl built-in functions

 

a) Chr – character from character code

 

b) Each – hash key/value pairs

 

c) Eval – evaluate perl code at runtime

 

d) Exists – check hash key

 

e) Grep – search for matching elements

 

f) Index – position of substring

 

g) Int – truncate to integer

 

h) Join – join list into string

 

i) Keys – get hash keys

 

j) Lc – convert to lowercase

 

k) Lcfirst – convert first character to lowercase

 

l) Length – get string length

 

m) Reverse – Reverse a list

 

n) Sort – sort list.

 

o) Split – split a string into an array of strings

 

p) Uc – convert to uppercase

 

q) Ucfirst – uppercase first character

 

r) Values – get hash values

 

References and Perl predefined variables

 

Hard References

 

Symbolic References

 

The Arrow Operator

 

Anonymous Arrays, Hashes, and Subroutines.

 

Dereferencing references

 

Dereferencing with the arrow operator

 

Omitting the arrow operator

 

Predefined variables:

 

a) $’ – Postmatch string

 

b) $” – Output field separator

 

c) $$ - Process Number

 

d) $& - Most Recent Pattern Match

 

e) $* - Multiline matching

 

f) $, - Output field separator

 

g) $/ - Input record separator

 

h) $? – Status of last pipe close, backtick command, or system call

 

i) $@ - Error from last eval

 

j) $\ - Output record separator

 

k) $_ - Default variable

 

l) $` - Prematch string

 

m) $+ - Last parantheses match

 

n) $0 – Script name

 

o) $ARGV – Name of current <> input file

 

p) $n – Pattern match number

 

q) %:: - Main symbol table

 

r) %ENV – Environment variables

 

s) %INC – Included files

 

t) @_ - Subroutine Arguments

 

u) @ARGV – Command line arguments

 

v) @INC – Location of scripts to evaluate

 

DAY 4

 

Creating packages and modules

 

What are packages ?

 

“use” and “require”

 

Compile time and Run-time

 

Introduction to OOPS

 

Class Creation

 

Bless function

 

Inheritance

 

UNIVERSAL class

 

AUTOLOAD function

 

DAY 5

 

Perl DBI

 

Establish Database Connection

 

SELECT Operation

 

Fetching data

 

INSERT Operation

 

Using BIND Values

 

READ Operation

 

UPADATE Operation

 

DELETE Operation

 

PREPARE & EXECUTE

 

do statement

 

COMMIT Operation

 

Using NULL values

 

Error handling

 

Disconnecting Database

 

Standard Modules

 

Env

 

GetOpt

 

lib

 

subs

 

vars

 

strict

 

File::Copy

 

File::Find

 

File::Path

 

Session VII

References and Perl predefined variables

 

Hard References

 

Symbolic References

 

The Arrow Operator

 

Anonymous Arrays, Hashes, and Subroutines.

 

Dereferencing references

 

Dereferencing with the arrow operator

 

Omitting the arrow operator

 

Predefined variables:

 

a) $’ – Postmatch string

 

b) $” – Output field separator

 

c) $$ - Process Number

 

d) $& - Most Recent Pattern Match

 

e) $* - Multiline matching

 

f) $, - Output field separator

 

g) $/ - Input record separator

 

h) $? – Status of last pipe close, backtick command, or system call

 

i) $@ - Error from last eval

 

j) $\ - Output record separator

 

k) $_ - Default variable

 

l) $` - Prematch string

 

m) $+ - Last parantheses match

 

n) $0 – Script name

 

o) $ARGV – Name of current <> input file

 

p) $n – Pattern match number

 

q) %:: - Main symbol table

 

r) %ENV – Environment variables

 

s) %INC – Included files

 

t) @_ - Subroutine Arguments

 

u) @ARGV – Command line arguments

 

v) @INC – Location of scripts to evaluate

Session VIII

Creating packages and modules

 

What are packages ?

 

“use” and “require”

 

Compile time and Run-time

 

Introduction to OOPS

 

Class Creation

 

Bless function

 

Inheritance

 

UNIVERSAL class

 

AUTOLOAD function

Session IX

Perl DBI

 

Establish Database Connection

 

SELECT Operation

 

Fetching data

 

INSERT Operation

 

Using BIND Values

 

READ Operation

 

UPADATE Operation

 

DELETE Operation

 

PREPARE & EXECUTE

 

do statement

 

COMMIT Operation

 

Using NULL values

 

Error handling

 

Disconnecting Database

Session X

Standard Modules

 

Env

 

GetOpt

 

lib

 

subs

 

vars

 

strict

 

File::Copy

 

File::Find

 

File::Path