Building your own Perl is not that hard -- just time-consuming, and a lot of that is just waiting for tests to run should you choose to do them.
- Install XCode, if you have not already done so.
- Install the XCode command line tools if you have not already done so: $ xcode-select --install.
- Decide where Perl should live. Create that directory. For the purposes of the following write-up, call the new directory "the-directory-you-want-Perl-to-live-in". For convenience in running the configure script, also create a bin/ directory under it.
- Download the kit from CPAN into a working directory, expand it, and cd to the kit directory.
- Configure Perl: $ ./Configure -Dprefix=the-directory-you-want-Perl-to-live-in. Answer a bunch of questions, defaulting almost all of them.
- Build Perl: $ make.
- Test Perl if desired: $ make test.
- Install Perl: $ make install. If you are installing in a system directory you may need to $ sudo make install.
- Add the bin/ directory to your PATH.
Installing a system-wide Perl under macOS has become increasingly difficult as Apple places more restrictions on system access. Mine currently lives in /Users/Shared/. You could also put it in your personal directory somewhere.