Hi list,

I just implemented a TODO item from 2004: Selective filtering of the packaged modules (and misc. text files). So far, filters specified via -F to pp were applied to all packaged module/autosplit files unconditionally.

The new behaviour should be backwards compatible. Using -F Bleach still applies PAR::Filter::Bleach to all modules. But you can specify a regular expression with your filter and it will be applied only to those files (not module names since not all filterable files are modules!) which match the regexp. Example:

-F 'Bleach=^File/Spec\.[^.]+$' (filter all File::Spec files.)

It's not pretty, but works. If I implemented either literal matching (no regexps) or matching on module::names instead of file/names, the mechanism would have been more difficult (module::names) or less generally applicable (both).

You're welcome to experiment with the new feature which was committed to SVN a few minutes ago.

Cheers,
Steffen

Reply via email to