Perl 5.21 cpanm fails to install DBIx::Connector
As you may find if you use a very recent environment with perlbrew, The latest Perls do not contain CGI.pm, so when you attempt to use cpanm (CPAN minus) to install a module like DBIx::Connector, it will fail and you will see in the created log file a line that contains:
Can't locate CGI.pm in @INC (you may need to install the CGI module)
This turns out to be, if you trace it, because the test module Test::MockModule still has a CGI based test. You can make the desired module install by forcing the Test component to install anyway:
$ <span style="text-decoration: underline;">cpanm Test::MockModule --force
</span><em>(succeeds)<span style="text-decoration: underline;">
</span></em>$ <span style="text-decoration: underline;">cpanm DBIx::Connector
</span><em>(succeeds)</em>
That's really all there is to it.