The cpan
command can tell you were something is installed:
$ cpan -D Mojo::UserAgent
CPAN: Storable loaded ok (v2.53)
Reading '/Users/brian/.cpan/Metadata'
Database was generated on Thu, 18 Feb 2016 12:41:02 GMT
Mojo::UserAgent
-------------------------------------------------------------------------
CPAN: Module::CoreList loaded ok (v5.20150520)
(no description)
S/SR/SRI/Mojolicious-6.46.tar.gz
/usr/local/perls/perl-5.22.0/lib/site_perl/5.22.0/Mojo/UserAgent.pm
Installed: undef
CPAN: undef up to date
Sebastian Riedel (KRAIH)
kraih@cpan.org
Once you find that directory, ensure that it's in your @INC
module search path. You can see what the default is with perl -V
.