Scroll to navigation

Fedora::VSP(3) User Contributed Perl Documentation Fedora::VSP(3)

NAME

Fedora::VSP - Perl version normalization for RPM

DESCRIPTION

This module provides functions for normalizing Perl version strings for Red Hat Package (RPM) based Linux distributions.

RPM version format and semantics is similar to Perl version strings (vX.Y.Z). But to exactly. Older Perl's fraction version format (X.YZ) is incompatible with RPM.

This is an effort to map Perl version strings to RPM version strings.

FUNCTIONS

vsp(STRING, SHORT)

Convert a version value into version string format. The output value is stripped from the leading "v" symbol.

If conversion fails, "undef" will be returned.

Empty or undefined string will be normalized to "undef".

If SHORT is true, the returned version string will be shortened by cutting trailing zero groups. If no digit would remain, "undef" will be returned. This feature ephases brevity.

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/>.

2015-10-09 perl v5.32.1