tomodachi@delacroix ~ $ docker run -ti ubuntu:20.04 perl --version
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
This is perl 5, version 30, subversion 0 (v5.30.0) built for x86_64-linux-gnu-thread-multi
(with 57 registered patches, see perl -V for more detail)
Copyright 1987-2019, 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.
Ubuntu 20.04 确实安装了 Perl。
至少如果您查看 Canonical 的官方 Ubuntu docker 镜像。
但它不再被视为高级脚本的最佳选择,因为它不是在所有平台上都可用,不是那么流行,也不是与旧版本的 Perl 完全向后兼容。
如果您希望一种编程语言在未来更有可能得到全面支持,并且跨发行版和操作系统,请考虑使用Python或Ansible来满足您的本地 shell 脚本和自动化需求