[1] Perl 5.26 – Instalacja
3 lutego 2022Zainstalujemy teraz język Perl.
[1] Potwierdź dostępność modułów Perla i zainstaluj go.
[root@vlsr01 ~]# dnf module list perl Ostatnio sprawdzono ważność metadanych: 13:22:23 temu w dniu śro, 2 lut 2022, 19:04:02. CentOS Stream 8 - AppStream Name Stream Profiles Summary perl 5.24 common [d], minimal Practical Extraction and Report Language perl 5.26 [d][e] common [d], minimal Practical Extraction and Report Language perl 5.30 common [d], minimal Practical Extraction and Report Language perl 5.32 common [d], minimal Practical Extraction and Report Language Wskazówka: [d]omyślne, [e]włączone, [x]wyłączone, [i]zainstalowane #zainstaluj Perl:5.26 [root@vlsr01 ~]# dnf module install perl:5.26 [root@vlsr01 ~]# perl -v This is perl 5, version 26, subversion 3 (v5.26.3) built for x86_64-linux-thread-multi (with 57 registered patches, see perl -V for more detail) 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. #sprawdź działanie tworząc prosty skrypt [root@vlsr01 ~]# echo 'print "$^V\n";' > perl_test.pl [root@vlsr01 ~]# perl perl_test.pl v5.26.3