Ubuntu 22.04でperlのバージョンを確認する

環境
Ubuntu 22.04.1 LTS

方法
1.以下のコマンドを実行してperlバージョンを確認します

# perl -v

This is perl 5, version 34, subversion 0 (v5.34.0) built for x86_64-linux-gnu-thread-multi
(with 50 registered patches, see perl -V for more detail)

Copyright 1987-2021, 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.

2.perlのパスを確認します

# whereis perl
perl: /usr/bin/perl /usr/lib/x86_64-linux-gnu/perl /etc/perl /usr/share/perl /usr/share/man/man1/perl.1.gz

 

Ubuntu 22.04

Posted by arkgame