|
|
viii | |
|
|
ix | |
Acknowledgements |
|
x | |
|
|
1 | (13) |
|
|
4 | (2) |
|
The Command Prompt/Console |
|
|
6 | (2) |
|
How to Navigate a File System |
|
|
8 | (3) |
|
Understanding File System Hierarchies |
|
|
8 | (1) |
|
Navigating Through File Systems |
|
|
9 | (2) |
|
|
11 | (1) |
|
Installing Perl and Perl/Tk on Your Computer |
|
|
12 | (2) |
|
|
12 | (1) |
|
Installing the Perl/Tk Toolkit |
|
|
12 | (2) |
|
Basic Programming Concepts - 1 |
|
|
14 | (16) |
|
How to Issue Instructions (Statements) |
|
|
14 | (2) |
|
How to Store Data in Memory (Variables) |
|
|
16 | (1) |
|
What to Store and How (Basic Data Types) |
|
|
17 | (10) |
|
|
18 | (2) |
|
|
20 | (4) |
|
|
24 | (3) |
|
Understanding About Defaults (Special Variables) |
|
|
27 | (1) |
|
Making Your Code More Intelligible (Comments) |
|
|
28 | (2) |
|
Basic Programming Concepts - 2 |
|
|
30 | (18) |
|
Making Decisions (Flow Control) |
|
|
30 | (4) |
|
Doing Repetitive Tasks Automatically (Basic for Loops) |
|
|
34 | (8) |
|
|
34 | (3) |
|
Iterating Over Array Elements |
|
|
37 | (1) |
|
|
38 | (4) |
|
More Repetitiveness (Further Loops) |
|
|
42 | (6) |
|
|
42 | (2) |
|
|
44 | (1) |
|
Controlling Loops Further |
|
|
44 | (4) |
|
Working with Text (Basic String Handling) |
|
|
48 | (8) |
|
|
48 | (2) |
|
Extracting a Substring from a Longer String |
|
|
50 | (2) |
|
`Adding' Strings Together |
|
|
52 | (1) |
|
Establishing the Length of a String |
|
|
53 | (1) |
|
|
54 | (2) |
|
Working with Stored Data (Basic File Handling) |
|
|
56 | (13) |
|
|
56 | (2) |
|
Tweaking Your Input and/or Output Options |
|
|
58 | (1) |
|
Reading from a Filehandle |
|
|
58 | (3) |
|
File Processing in List Context |
|
|
59 | (1) |
|
File Processing in Line Context |
|
|
60 | (1) |
|
Slurping in Scalar Context |
|
|
61 | (1) |
|
|
61 | (1) |
|
|
62 | (1) |
|
|
62 | (7) |
|
Identifying Textual Patterns (Basic and Extended Regular Expressions) |
|
|
69 | (11) |
|
|
69 | (1) |
|
|
70 | (3) |
|
|
73 | (2) |
|
Grouping, Alternation and Anchoring |
|
|
75 | (1) |
|
|
76 | (1) |
|
|
77 | (1) |
|
Extended Regular Expressions |
|
|
77 | (3) |
|
Modifying Textual Patterns (Substitution and Transliteration) |
|
|
80 | (11) |
|
|
80 | (4) |
|
|
84 | (1) |
|
A Very Brief Introduction to Markup Languages (SGML, HTML and XML) |
|
|
85 | (3) |
|
|
88 | (3) |
|
Getting Things Into the Right Order (Basic Sorting) |
|
|
91 | (4) |
|
|
92 | (1) |
|
`Vocabulary Handling' (Creating Simple Word Lists) |
|
|
93 | (2) |
|
Elementary Texts Stats (Creating Basic Frequency Lists) |
|
|
95 | (4) |
|
|
95 | (1) |
|
|
96 | (1) |
|
|
96 | (1) |
|
Sorting and Printing the List |
|
|
97 | (2) |
|
More Repetitiveness or How to Tie Things Together (Introducing Modularity) |
|
|
99 | (16) |
|
Functions and Subroutines |
|
|
99 | (5) |
|
Creating Your Own Subroutines |
|
|
100 | (1) |
|
|
101 | (1) |
|
Localising Variables and Being Strict With Yourself |
|
|
102 | (2) |
|
|
104 | (11) |
|
|
104 | (2) |
|
|
106 | (2) |
|
What Do Modules Look Like? |
|
|
108 | (1) |
|
Importing and Using Modules |
|
|
109 | (1) |
|
Writing a Simplistic HTML Page Downloader and Parser |
|
|
110 | (5) |
|
|
115 | (6) |
|
|
115 | (1) |
|
Creating an Object in Perl |
|
|
116 | (1) |
|
Creating a Regular Verb Object |
|
|
116 | (2) |
|
Instantiating the Verb Object |
|
|
118 | (1) |
|
Creating Appropriate Accessor Methods |
|
|
119 | (2) |
|
Getting Graphical (Simple User Interfaces) |
|
|
121 | (16) |
|
|
121 | (1) |
|
Basic Steps in Creating Tk Programs |
|
|
122 | (1) |
|
|
123 | (6) |
|
The GUI Concordancer - An Advanced Example |
|
|
129 | (8) |
|
Adding a Menu Bar and the Remaining GUI Elements |
|
|
130 | (2) |
|
Programming the Functionality |
|
|
132 | (2) |
|
|
134 | (3) |
|
|
137 | (2) |
Appendix A - Sample Solutions |
|
139 | (28) |
Appendix B - How to Get Further Help on Perl |
|
167 | (2) |
References |
|
169 | (2) |
Index |
|
171 | |