Dan Sully schrieb:
I'm trying to exclude modules based on a wildcard such as:

pp -X URI::* ...

But that's not working.. Is there an equivalent that I've overlooked?

That feature doesn't exist. I originally thought it should be simple to implement: Just accept strings of the form /.../ as regexes which act on module names. But it turns out to be much more difficult than just the interface :/

After all, -M and -X, which are implemented in much the same way, work on module names and file names. (Though the latter use is deprecated.) How do you match file names with a pattern for module names? That isn't going to fly, hence the change would have to make the treatment of -M and -X asymmetric. Given that, Module::ScanDeps would have to be changed to accept regexes instead of literal module names for skipping. Problem is, right now, it gets passed a hash of 'Skip::Name' => 1 which is used as a look-up table...

I suppose it would be possible to do, but certainly quite a bit of work and prone to break.

If you plane to use it for packaging into .par files, you can use Archive::Zip or PAR::Dist to remove all of lib/URI/*. But of course, that's a hack.

Does anybody have a better idea?

Steffen

Reply via email to