ianox has asked for the wisdom of the Perl Monks concerning the following question:

How and where do I set path_filters? I am using the mirrorer capmini from CPAN that works fine, but FProt_Client comes up as a Virus! Tried to put filter into the t dir and rebuild, but no go. CPAN::Mini.pm uses it, but complex for me to declare somewhere! Tried changing cpanmini to CPAN::Mini::App->run( path_filters => qr/FProt/ ); but still a problem. Any help pls. Ian

Replies are listed 'Best First'.
Re: cpan mini
by marto (Cardinal) on Jan 27, 2010 at 17:59 UTC

    You seem to be confusing modules filters and path filters, and ignoring all of the posting/formatting advice given.

    FProt::Client is a module, not a CPAN path (it's in ~avar/), examples of the differences are explained in the CPAN::Mini documentation.

    If you simply don't want to get any module containing the word 'FProt' in its name try:

    #!/usr/bin/perl use strict; use warnings; use CPAN::Mini; CPAN::Mini->update_mirror( remote => "http://your.chosen.mirror/", local => "/local/path/here", trace => 1, module_filters => [ qr/fprot/i ] );

    Or simply alter the filter accordingly to suit your needs.

    See also Writeup Formatting Tips.