"sudo perl -MCPAN -eshell" from the terminal should get you started. If this is the first time you have typed the above command it will ask a bunch of questions. Then you can install the module by typing "install Net::Ping" at the "cpan> " prompt you should have on the terminal.