Selected Sources from:
Elements of Programming with Perl
As promised, the literate sources for the faqgrep
and
pqtangle
scripts are here along with postscript and PDF
versions of the typeset documentation (resulting from
weaving
the literate source). As well, a couple of other
plain source files from the book are provided here for your
convenience.
faqgrep
- faqgrep.nw
- The literate source for the
faqgrep
program.
- faqgrep.ps
- The typeset documentation in postscript format.
- faqgrep.pdf
- The typeset documentation in PDF format.
pqtangle
- pqtangle.nw
- The literate source for the
pqtangle
program.
- pqtangle.ps
- The typeset documentation in postscript format.
- faqgrep.pdf
- The typeset documentation in PDF format.
- pqtangle
- The pqtangle script, already tangled and ready for use.
If you want to test the pqtangle
script, then
grab a copy of the faqgrep.nw
source and run
the tangler on it like so:
perl pqtangle -L faqgrep.nw
This should result in a new faqgrep
file being
generated which contains the code with line directives inserted. You
can now use the resulting faqgrep
program as discussed
in the book.
Other
- primes.pl
- The prime number program given in chapter 5 of the book.
- fibo.pl
- The closure example of a Fibonacci stream generator from
chapter 8.
- Stock.tar.gz
- Gzipped tarfile of the stock-quote example in chapter 14.
- Stock.zip
- Same as above in zip format (should work with either the
zip or PKzip utility).
- sorts.pl
- A script containing the various sorting algorithms given
in chapter 17 of the book.
- Stack.pm
- Perl module implementing a Stack class, from chapter 18.
- Queue.pm
- Perl module implementing a Queue class, from chapter 18.
- Heap.pm
- Perl module implementing a Heap class, from chapter 19.
- Course.tar.gz
- A gzipped tarfile containing the Course example Classes, data
files, and scripts from chapter 19.
- Course.zip
- Same as above, but in zip format (should work with zip and PKzip)..