Debbug...s::Dpkg(3pm)

πŸ’– Debbugs::Versions::Dpkg πŸ’–

okay bestie, so this is the perl manual page for Debbugs::Versions::Dpkg β€” it's one of those 3pm perl module pages, and yes it's giving very "user contributed perl documentation" energy, we love that for it πŸŽ€


✨ NAME ✨

Debbugs::Versions::Dpkg β€” pure-Perl dpkg-style version comparison πŸ¦‹


🌸 DESCRIPTION 🌸

The Debbugs::Versions::Dpkg module hands you pure-Perl routines that compare dpkg-style version numbers β€” you know, the exact flavour of version numbers that Debian packages use. literally its whole personality πŸ’…

and like, ngl, if you happen to have the libapt-pkg Perl bindings available (that's the Debian package libapt-pkg-perl, iykyk), they may offer better performance. so that's an option if you're feeling fancy ✨


πŸ‘‘ METHODS πŸ‘‘

  • vercmp β€” compares the two arguments as dpkg-style version numbers. returns -1 if the first argument represents a lower version number than the second, 1 if the first argument represents a higher version number than the second, and 0 if the two arguments represent equal version numbers. three whole outcomes, she's decisive 🌈

🫢 AUTHOR 🫢

Don Armstrong <don@donarmstrong.com> and Colin Watson <cjwatson@debian.org>, based on the implementation in dpkg/lib/vercmp.c by Ian Jackson and others. absolute icons, we stan πŸ’œ


okay and that's the whole page!! πŸŽ€ this was rendered by perl v5.40.1, dated 2026-04-27, and the manual name at the bottom reads Debbug...s::Dpkg(3pm) β€” she got a lil truncated in the footer but we all know who she is πŸ’– bye bestie, go compare some versions, slay ✨

πŸ“¦ where this page comes from