CPAN::Version(3perl)
β¨ NAME β¨
CPAN::Version β utility functions to compare CPAN versions π
okay so basically bestie this is the little module that handles the β¨version dramaβ¨ so you don't have to π«Ά
π SYNOPSIS π
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"
like, look at her go πββοΈπ¨ comparing versions like it's nothing, no cap
π DESCRIPTION π
So the whole vibe here: this module mediates between some version that perl sees in a package and the version that is published by the CPAN indexer. π like there's the version your perl is squinting at, and there's the version the CPAN indexer is announcing to the world, and sometimes those two are not giving the same energy π so this module steps in and translates bestie-to-bestie π
It's only written as a helper module for both CPAN.pm and CPANPLUS.pm. π«Ά like it's a supporting character, not the main character β but honestly? the way it carries the whole plot? iconic π
As it stands it predates version.pm but has the same goal: make version strings visible and comparable. β¨ fr fr, same dreams, just a little older π
β LICENSE β
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. π
and that's the whole page bestie, no cap π this was perl v5.44.0, dated 2026-10-17, and the manual is CPAN::Version(3perl) β go forth and compare versions responsibly, mwah π
β¨
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms