http://www.perlmonks.org?node_id=820610

kirkbrown has asked for the wisdom of the Perl Monks concerning the following question:

I have data that I want to compare to a temp and master file. Then submit a report showing what data is different from the master file and what data is not in the master file. The data looks similar to this:

crrobert1 S3H24 999-4574 Main Bldg
kcbens4 T3222 410-6677 Physical Plant

I want to:
1. Match each line based on the first group of 5-7 characters
2. Compare the temp file lines master file line to see if each line is present and matches.
3. Create report listing lines (Both master and temp file) that are different or not present