What Version of Perl Is Installed Linux?
Contents How Do I Find Perl Version in Linux? 3 Quick Ways to Find out the Version Number of an Installed Perl Module from the Terminal Use Cpan with the -D...
Contents
How do I find Perl version in Linux?
3 quick ways to find out the version number of an installed Perl module from the terminal
- Use CPAN with the -D flag. cpan -D Moose. …
- Use a Perl one-liner to load and print the module version number. …
- Use Perldoc with the -m flag to load the module’s source code and extract the version number.
Must Read
Is Perl installed on Linux by default?
Perl doesn’t have to be ‘installed’, but can run inside of your application’s directory. I would bundle Perl with my distribution, so you can ensure you’re running the same version. It is very difficult to write a completely cross platform shell script, without testing on the target OS.