Contents
Up
Prev
Next
"Perl for Perl Newbies" Part 2
Contents
1. The for Loop
1.1. Behaviour of next in the for Loop
1.2. Whence for?
2. Hashes
2.1. Hash-Related Functions
3. Declaring Local Variables with "my"
3.1. "use strict", Luke!
3.2. "use warnings", Luke!
4. Functions
4.1. Function Recursion
4.2. Use of "shift" in Functions
5. File Input/Output
5.1. Using "print" with Files
5.2. The <FILEHANDLE> Operator
6. The @ARGV Array
7. Regular Expressions
7.1. Syntax
7.2. ".", "[ ... ]"
7.3. The "*" and Friends
7.4. Grouping
7.5. Alternation with "|"
7.6. Binding to the Beginning or the End of a String
7.7. Substituting using Regular Expressions
7.7.1. The "e" Switch
7.7.2. Ungreedy Matching with *? and Friends
7.8. Useful Flags
7.9. Useful Escape Sequences
7.10. The Next Step
8. String Interpolation
9. Useful Functions
9.1. split
9.2. map
9.3. sort
9.3.1. <=> and cmp
9.4. grep
10. References
10.1. Example: The Towers of Hanoi
10.2. \ - Taking a Reference to an Existing Variable
10.3. [ @array ] - a Dynamic Reference to an Array
10.4. { %hash } - a Dynamic Reference to a Hash
10.5. The Arrow Operators
10.6. Dereferencing
11. Using the perl Debugger
11.1. Stepping over and Stepping in
11.2. Setting Breakpoints and Continuing
11.3. Executing Perl Commands inside the Debugger
11.4. Getting More Information
12. Finale
License
This work is licensed under the
Public Domain
.
Contents
Up
Prev
Next
Made with Quad-Pres