Perl Programming Tutorial
Article Index
1. Using The Perl interpreter
1.1. Find Perl Interpreter
1.2. Implicit Execution
1.3. Explicit Execution
2. Simple Perl script
3. Current path to Perl modules
4. Variables
4.1. Using Perl default variable $_
4.2. Defined Function
4.3. Scalar variable
4.3.1. Single-Quoted Strings
4.3.2. Double-Quoted Strings
4.3.3. String Operators
4.3.4. Non-Decimal Integers
4.3.5. Scalar Constant Variable
4.3.6. String And Numeric comparison Operators
4.4. Lists
4.5. Arrays
4.5.1. Create and print array
4.5.2. Push and Pop Arrays
4.5.3. Determine The Length of an Array
4.5.4. Merge and Append Arrrays
4.5.5. Sort Arrays
4.5.6. Delete Element from an Array
4.6. Hash
4.6.1. Create Hash
4.6.2. Add Element to a Hash
4.6.3. Print Hash
4.6.4. Merging Hashes
5. Perl Regular Expressions
5.1. Regular Expressions and Special Characters
5.2. Match Characters
5.3. Substitution
5.3.1. Substitution with evaluation
5.4. Translation
5.5. Classes
5.6. Quantifiers
5.7. Assertion
5.8. Multiple Match
5.9. Regular Expression Extention
5.10. Grouping
6. Perl Subroutines
6.1. Create Simple Perl Subroutine
6.2. Pass and Return Values
7. Perl operators
7.1. Precedence of Perl operators
7.2. Arrow operator
7.3. Increment and Decrement operators
8. Loops
8.1. Perl for loop
8.2. Perl while loop
8.3. Perl until loop
8.4. Perl foreach loop
9. Getting User Input
9.1. Reading Command Line Arguments
10. File Handling
10.1. Read File Passed from the Command line
10.2. Open File for Read and Write
10.3. Determine Number of Lines in a File
10.4. Determine Number of Characters in a File
10.5. Seek position within a File
11. Simple Perl Arithmetics
12. Perl Octal, Hexadecimal, And Decimal Conversions
13. Create Perl Package
14. Databases connections
14.1. Perl MySQL database connection
...
muchomorek74