sourCEntral - mobile manpages




Fedora::VSP − Perl version normalization for RPM


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.


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.


Petr Písař <ppisar AT redhat DOT com>


Copyright (C) 2015 Petr Písař <ppisar AT redhat DOT 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 <>.