0.Open the Terminal.app (found in Applications -> Utilities) and copy & paste the command below into it (then press the ‘return’ key):
curl -L http://xrl.us/installperlosx | bash
1.Once this is finished (it takes several minutes), quit the Terminal app.
2.You can use command below to check it(then press the ‘return’ key):
perl -v