To install Perl on a FreeBSD system, you can use the pkg
package manager.
pkg update
pkg install perl5
This will install the latest version of Perl 5 on your system.
perl -v
This should output the version of Perl that you have installed, similar to the following:
This is perl 5, version XXX, subversion X, built for xxx-xxx
Note: Replace XXX and X with the version numbers of the Perl installation that you have.