in reply to Perl installation on Ubuntu and/or Mac OS

As far as I know both have Perl installed by default. There are ways to install different versions of Perl on MacOS and switch between them but that is another matter.

Open the terminal and enter,

perl -v

Ubuntu 24.04 aka Noble Numbat has Perl version 5.38.2 installed by default. There are some modules in place already, but when you add more it pays to make every effort to get the modules from the official repositories before turning to CPAN itself.

As for MacOS, I have not used that for years but homebrew would be the way to add any missing modules before turning to raw CPAN.