Having trouble in CPAN, getting messages like: fatal error: ‘EXTERN.h’ file not found.
Use Perlbrew and all your worries are gone.
$ brew install perl
$ brew link –overwrite perl
After this Perl and CPAN are installed /usr/local/bin:
$ which perl cpan
/usr/local/bin/perl
/usr/local/bin/cpan