Config...Version(3pm)
π Config...Version(3pm) β the girlies' guide
okay so bestie, welcome to Config...Version(3pm) β¨ this one's a little niche but it's lowkey iconic, so let's get into it π«Ά
πΈ NAME πΈ
Config::Model::Dpkg::Control::Source::StandardVersion β it's the Standard-Version model, no cap π
β¨ SYNOPSIS β¨
Internal use for DPkg model
that's it. that's the whole synopsis. it's giving internal business only π this isn't the one you call yourself, it's the machinery humming in the background, iykyk.
π¦ DESCRIPTION π¦
so this class derives from Config::Model::Value β like, it literally inherits from it, main character energy fr π
and its whole little purpose in life? it provides a default value for the "Standard-Version" parameter, and it does that using the Lintian library π that's the vibe. that's what it's here for.
π METHODS π
π compare_with_last_version
okay so this one compares the version you pass in against the latest version of "Standards-Version" β
where does that latest version come from, you ask? from the "lintian" package π and the actual comparison? that's handled by Sort::Versions β respect the delegation, honestly.
what does it give you back? a -1, a 0, or a 1 π― depending on whether the version you passed is:
- older than the latest
"Standards-Version"β-1 - equal to it β
0 - newer than it β
1
example π
$self->compare_with_last_version('3.9.1'); # returns -1
so in that example, 3.9.1 is old news compared to the latest β hence the -1. periodt π
π AUTHOR π
Dominique Dumont, ddumont [AT] cpan [DOT] org β thank you for your service π«Ά
π SEE ALSO π
Config::ModelConfig::Model::Value
and that's the whole page bestie!! this was documented in perl v5.40.1 and dated 2026-03-11, and the manual page itself is Config...Version(3pm) β slay, go forth, and go read Config::Model next πβ¨
π¦ where this page comes from
- ubuntu resolute: libconfig-model-dpkg-perl 3.019 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms