Hi again! As it just so happens in the synchronicity of things, today, the very next day, I get turned on to
the R language, which as it happens has a Perl module at
Statistics::R. The R homepage even has a useful set of recipes at
CRAN.... Smart name. :-) It does what you need it to do. Process information into sets.