or download this
Configuring Your Mac to Use CPAN
Before we get into using CPAN to install modules for your own code, le
+t's talk what happens if you find a really cool project on the Intern
+et that uses CPAN modules. To get that code up and running, you'll ne
+ed to install the modules from CPAN to your computer. So let's config
+ure 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 Xco
+de package from Apple's Developer site. (Note that you need a free de
+veloper account to download these tools.) Once you have either Xcode
+or the Developer tools, let's install some modules!