Install Perl 5.20 on macOS

Codeforces support perl 5.20 and the perl version on macOS is 5.18. So I want to install perl 5.20 on macOS. There is a installation management toll for perl. It is Perlbrew.

Just follow the homepage of the Perlbrew to install it:

\curl -L https://install.perlbrew.pl | bash

Then install perl 5.20:

perlbrew install perl-5.20.0

Now, I can switch to perl 5.20 easily:

perlbrew switch perl-5.20.0