Hello, all. I have a short module that parses arbitrary mutt-style patterns into a hash (mutt's patterns are documented in section 4.2 of the mutt manual). For example:
~t foo ~f bar would turn into: $VAR1 = { 'f' => { 'value' => 'bar', 'negated' => 0, }, 't' => { 'value' => 'foo', 'negated' => 0, } }; The patterns (the t and Q above) are configurable per parser instance, and it supports using a pattern multiple times (e.g., "~t foo ~t bar"), negated patterns (e.g., "! ~Q"), and has a configurable leader (the ~ in the patterns). Is this worth putting onto CPAN, and, if so, what should it be called? The working name is Parse::MuttStylePatterns, but that's a pretty bad name. Thanks for any help. (darren) -- The language Unix is vastly more inconsistent than the language Perl. And guaranteed to remain that way, forever and ever, amen. -- Larry Wall
pgp00000.pgp
Description: PGP signature