blib/lib/auto/share/dist/Zoidberg/plugins/CPAN.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 use CPAN ();
3  
4 use Zoidberg::Shell;
5  
6 my $shell = Zoidberg::Shell->current();
7  
8 $$shell{parser}{CPAN} = {
9 #module => 'CPAN::Shell',
10 handler => sub {
11 my (undef, $sub, @args) = @{ shift() };
12 $sub = 'h' if $sub eq '?';
13 CPAN::Shell->$sub(@args);
14 },
15 completion_function => \&CPAN::Complete::cpl,
16 };
17  
18 CPAN::Config->load;
19  
20 1;