Le mardi 29 mars 2005 à 17:52, Orton, Yves écrivait: > > > > Any other name ideas or comments about the module and its interface? > > I started working on a project like this but never got around to finishing > it. I called it "Generic Record Processing System" IE GRPS. The point being > that this isnt a facility related to parsing log files, its a facility > relating to processing any file of parsable records in a mechanical way.
This is one reason why I didn't like the Log:: prefix. This also implies that my Regexp::Log suite of modules is badly named as well. > Interesting rules would be stuff like set membership "is field x in set Y" > (which would be implemented as a hash lookup etc). Also interesting would be > a framwork for specifiying which ruleset to apply based on > filename/directory conventions. Additionally stuff like record > transformation, prefix matching and logical evaluation would be cool too. Set operations? Good idea. If the field is a string and the set is a set of strings, computing a regular expression with Regexp::Assemble might be a good option as well. And then, caching the generated code (e.g. because Regexp::Assemble takes some time to run) could be a bonus. -- Philippe "BooK" Bruhat For every winner, there must be one or more losers. (Moral to the Sage story in Groo #111 (Epic))