in reply to generating regexes?

"I've looked on CPAN for ... but haven't been able to find anything."

Point your browser on over to Regexp::Common!

And mortis - please surround URL's in square brackets to make them links, much more convenient: http://www.bgw.org/projects/perl/machine_learning/

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
F--F--F--F--F--F--F--F--
(the triplet paradiddle)