There are several options:
# You need to install Command Line Tools for Xcode
curl -L https://install.perlbrew.pl | bash
Perlbrew with thread support:
# You need to install Command Line Tools for Xcode
curl -L https://install.perlbrew.pl | bash
After the install of perlbrew, if you want to install Perl with thread support, just run:
perlbrew install -v perl-5.26.0 -Dusethreads
From source:
tar -xzf perl-version.tar.gz
cd perl-version
./Configure -de
make
make test
make install