CPAN::Version(3perl)

CPAN::Version3perl

Utility functions to compare cpan versions

Usage

  use CPAN::Version;
  CPAN::Version->vgt("1.1","1.1.1");    # 1 bc. 1.1 > 1.001001
  CPAN::Version->vlt("1.1","1.1");      # 0 bc. 1.1 not < 1.1
  CPAN::Version->vcmp("1.1","1.1.1");   # 1 bc. first is larger
  CPAN::Version->vcmp("1.1.1","1.1");   # -1 bc. first is smaller
  CPAN::Version->readable(v1.2.3);      # "v1.2.3"
  CPAN::Version->vstring("v1.2.3");     # v1.2.3
  CPAN::Version->float2vv(1.002003);    # "v1.2.3"

Overview

This module mediates between some version that perl sees in a package and the version that is published by the CPAN indexer.

It's only written as a helper module for both CPAN.pm and CPANPLUS.pm.

As it stands it predates version.pm but has the same goal: make version strings visible and comparable.

Releases

10 releases since Debian 5.0 (Lenny); the text changed 9 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11
  8. 12
  9. 13
  10. Arch

License

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

From perl 5.44.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.