Section 6.8. Exercises


6.8. Exercises

You can find the answers to these exercises in "Answers for Chapter 6" in the Appendix.

6.8.1. Exercise 1 [20 min]

The program from Exercise 2 in Chapter 5 needs to read the entire datafile each time it runs. However, the Professor has a new router logfile each day and doesn't want to keep all that data in one giant file that takes longer and longer to process.

Fix up that program to keep the running totals in a datafile so the Professor can simply run it on each day's logs to get the new totals.

6.8.2. Exercise 2 [5 min]

To make it really useful, what other features should be added to that program? You don't need to implement them!




Intermediate Perl
Intermediate Perl
ISBN: 0596102062
EAN: 2147483647
Year: N/A
Pages: 238

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net