Here are a pair of parse and report programs. Roughly illustrate how to use various Perl features for doing ad hoc reporting: