In gcc/contrib, there is a perl script called compareSumTests3. It seems exactly like what I need, however executing it isn't possible: Undefined subroutine &main::compareSumFiles called at gcc/contrib/compareSumTests3 line 178. That line is: my %analyzed_results = compareSumFiles(\@sumfiles); And compareSumFiles isn't defined anywhere. Suggestions?