Today I will be showing you how to install CPAN module.. To do this we need to run the following commands to load the
perl -MCPAN -e shell
When you run the second command for the first time allow it to automatically configure itself. Then your Terminal should change a little and be something like the following.
Now you can install PERL modules simply by typing “install <modulename>” for example this would install the Net::RawIP module.
cpan> install Net::RawIP
That’s all folks, hope this helps someone!