testCalcMatch.pl
This test and example program illustrates the use of the methods matchSpectrumClosest and matchSpectrumGreedy.
The way the fragment are output makes no attempt to improve user readability, it directly reflects the data structure returned by getFragmentMasses and the match methods (see their documentations via perldoc MassCalculator.pm). User friendly outputs are the responsability of the module MSMSOutput.pm, see the corresponding examples.