On Wed, Sep 10, 2003 at 05:14:21AM -0400, Kevin C. Krinke wrote: > I have submitted a wish-list bug-report at rt.cpan.org for > ExtUtils::MakeMaker regarding a compliment option to the PM_FILTER > option for Perl Module files called PL_FILTER. > > I would like to get everyone else's opinions on the matter as well. > > If you don't have any idea as to what PL_FILTER would do, read the > following POD and think of a ".pl" script instead of a ".pm" (or even > ".PL") script.
How about a more general solution that allows to define a filter, as well which kinds of files it applies to? For example, covering ".pl" and ".PL" doesn't cover ".cgi", or binaries that get installed without an extension. In Data::FormValidator, I addressed something like this by using a regular expression as a hash key. I thinking of the following kind of syntax: FILTER_MAP => { qr/.pm$/ => 'grep ...', # like PM_FILTER qr/.pl$/ => 'grep ...', # like PL_FILTER qr/.cgi|my_binary/ => 'grep ...', # ...very flexible }, In Data::FormValidator, there's also code to support this kind of syntax for older Perl's without "qr". It uses an RE to match an RE. It looks more hackish than just supporting 'qr', but it works reliably in that application. I'd rather see something like this than a proliferation of "_FILTER" options tied to different extensions. Mark -- . . . . . . . . . . . . . . . . . . . . . . . . . . . Mark Stosberg Principal Developer [EMAIL PROTECTED] Summersault, LLC 765-939-9301 ext 202 database driven websites . . . . . http://www.summersault.com/ . . . . . . . .