Next | Making Programs Faster | 39 |
I wanted a sample program written by someone else
This one was kindly provided by Mr. Robert Spier
He used it in last year's optimization tutorial
It's in mfa1-n.pl
The program analyzes an mbox-format file
perl mfa1.pl MBOX
The output might look like this:
Messages : 109 Total Size : 190790 Average Size : 1750 Most Common Characters: : 25557 e : 13719 o : 9330 t : 7473 r : 7460 Least Common Characters: ~ : 18 # : 14 \ : 9 & : 6 Z : 2 | : 2 Most Common Domains: plover.com : 52 upenn.edu : 38 pobox.com : 19
Next | Copyright © 2003 M. J. Dominus |