Fedora::VSP(3)

πŸ“¦
version 0.001 Β· 4 versions
, in centos-stream 9

πŸŽ€ Fedora::VSP β€” the Perl manual page, but make it a group chat πŸŽ€

okay so bestie, this is Fedora::VSP(3), a User Contributed Perl Documentation page, and it's literally about making Perl version strings behave for RPM. Let me tell you everything πŸ’…


✨ NAME ✨

Fedora::VSP β€” Perl version normalization for RPM. that's it, that's the whole vibe πŸ¦‹


🌸 DESCRIPTION 🌸

okay so this module hands you functions for normalizing Perl version strings for Red Hat Package (RPM) based Linux distributions. slay.

here's the tea: RPM's version format and semantics is similar to Perl version strings (vX.Y.Z). but to exactly? no bestie. the older Perl fraction version format (X.YZ) is incompatible with RPM 😭

so this whole thing is an effort to map Perl version strings to RPM version strings. that's the mission. that's the main character energy. πŸ‘‘


πŸ”₯ FUNCTIONS πŸ”₯

⭐ vsp(STRING, SHORT)

Convert a version value into version string format. the output value is stripped from the leading v symbol. bye v, we don't know her πŸ™ˆ

if conversion fails, undef will be returned. no cap.

empty or undefined string will be normalized to undef. literally nothing in, nothing out 🫢

if SHORT is true, the returned version string will be shortened by cutting trailing zero groups. and listen β€” if no digit would remain, undef will be returned. πŸ’€ this feature ephases brevity. it's giving minimalism, it's giving less-is-more, it's giving SHORT mode ✨


πŸ‘‘ AUTHOR πŸ‘‘

Petr PΓ­saΕ™ <ppisar@redhat.com>


πŸ’– COPYING πŸ’–

Copyright (C) 2015 Petr PΓ­saΕ™ <ppisar@redhat.com>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.


and that's the whole page bestie, no notes 🌈

ngl the licensing paragraph is doing the most, but we respect the legalese. it's iconic in its own way πŸ’œ

alright so this was Fedora::VSP(3), perl v5.32.1, dated 2021-08-09 β€” shoutout to the perl toolchain, and remember: normalize your versions, hydrate, and stan undef handling πŸ“πŸ§šπŸ’œ


πŸ“¦ where this page comes from