Most modules (especially ones from The CPAN) have a $VERSION variable:
perl -MSome::Module -le 'print $Some::Module::VERSION'
More Related Contents:
- How can I install a specific version of a set of Perl modules?
- How can I install a CPAN module into a local directory?
- How can I install Perl modules without root privileges?
- How can I use a new Perl module without install permissions?
- How do I choose a package name for a custom Perl module that does not collide with builtin or CPAN packages names?
- Failing to install MIME::Base64 using cpan [closed]
- What’s the easiest way to install a missing Perl module?
- How can I use CPAN as a non-root user?
- How can I require an optional Perl module if installed?
- How do I “use” a Perl module in a directory not in @INC?
- How can I dynamically include Perl modules without using eval?
- What is the difference between new Some::Class and Some::Class->new() in Perl?
- How can I install CPAN modules locally without root access (DynaLoader.pm line 229 error)?
- How do YOU manage Perl modules when using a package manager?
- Which cpan installer is the right one? (CPAN.pm/CPANPLUS/cpanminus)
- Why is the Switch module deprecated in Perl?
- In Perl, how can I check from which module a given function was imported?
- Can a Perl script install its own CPAN dependencies?
- How do I tell CPAN to install all dependencies?
- Declaring a 2D coordinate in Perl / C / C++ [closed]
- Why can’t Perl find my file that is in ClearCase?
- How can I output UTF-8 from Perl?
- What’s the difference between a hash and hash reference in Perl?
- Multiline search replace with Perl
- How can I process options using Perl in -n or -p mode?
- Using output from a previous job in a new one in a GitHub Action
- What does !! (double exclamation point) mean?
- Using my with parentheses and only one variable
- How can I extract text from a PDF file in Perl?
- How do I retrieve the terminal width in Perl?