December 2000
Intermediate to advanced
784 pages
20h 54m
English
Before we get into details, let's look at two simple programs.
The lgetl.pl script (for "line get local," Figure 1.1) reads the first line of a local file. Call it with the path to the file you want to read, and it will print out the top line. For example, here's what I see when I run the script on a file that contains a quote from James Hogan's "Giants Star":
% lgetl.pl giants_star.txt
"Reintegration complete," ZORAC advised. "We're back in the universe."
This snippet illustrates the typographic conventions this book uses for terminal (command-line interpreter) ...
Read now
Unlock full access