I fixed it! For reference to other MacPorts / CPAN users:
I ended up forcibly removing Perl5 and CPAN from MacPorts and cleaning ~ / .cpan. A sudo find /opt -name cpan(or perl5) should result in only a few ports.
Reinstall perl5. I also ran sudo port upgrade outdated.
From now on, install only perl modules through MacPorts instead of CPAN. For example, digest :: SHA is p5-digest-sha on MacPorts.
For what is available only for CPAN, use cpan2port, following the simple instructions here.
source
share