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::Model
  • Config::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