Configuring Your Mac to Use CPAN Before we get into using CPAN to install modules for your own code, let's talk what happens if you find a really cool project on the Internet that uses CPAN modules. To get that code up and running, you'll need to install the modules from CPAN to your computer. So let's configure your Mac to use CPAN before we do anything else. First, CPAN uses some low-level tools to install modules on your Mac. Therefore, you will need to have either Xcode installed from the Mac App Store or you will need to download the Command Line Tools for Xcode package from Apple's Developer site. (Note that you need a free developer account to download these tools.) Once you have either Xcode or the Developer tools, let's install some modules!