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