develooper Front page | perl.module-authors | Postings from November 2003

Yet another naming question

Thread Next
darren chamberlain
November 10, 2003 04:32
Yet another naming question
Message ID:
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

  ~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

Thanks for any help.


The language Unix is vastly more inconsistent than the language Perl.
And guaranteed to remain that way, forever and ever, amen.
    -- Larry Wall

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About