To find out which version of Perl is installed on your system, you can use the "perl -v" command. This command will print the version number of the Perl interpreter to the terminal.
To use the "perl -v" command, open a terminal and type the following command:
perl -v
This will print the version number of the Perl interpreter to the terminal, along with some additional information such as the version of the Configure script and the location of the Perl library files. The output will look something like this:
This is perl 5, version 30, subversion 1 (v5.30.1) built for x86_64-linux Copyright 1987-2018, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page.
The version number of the Perl interpreter is shown in the first line of the output, in this case "5.30.1".
You can use the "perl -v" command to check which version of Perl is installed on your system, or to verify that Perl is installed at all. You can also use the "perl -V" command to display additional information about the Perl interpreter, such as the location of the Perl library files and the compile-time options used to build the interpreter.