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

Yet another naming question

Thread Next
From:
darren chamberlain
Date:
November 10, 2003 04:32
Subject:
Yet another naming question
Message ID:
1290ab0313c500176c1409a23e7c732961c0052b@tumbleweed.boston.com
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

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About