Openbsd-Packagename

OpenBSD::PackageName(3p) Perl Programmers Reference Guide

Openbsd-Packagename

OpenBSD::PackageName(3p) Perl Programmers Reference Guide # OpenBSD::PackageName(3p) Perl Programmers Reference Guide NNAAMMEE # OpenBSD::PackageName - package names handling SSYYNNOOPPSSIISS # use OpenBSD::PackageName; $pkgname = OpenBSD::PackageName::url2pkgname($url); ($stem, $version, @flavors) = OpenBSD::PackageName::splitname($pkgname); $stem = OpenBSD::PackageName::splitstem($pkgname); OpenBSD::PackageName::is_stem($stem) == 1; OpenBSD::PackageName::is_stem($pkgname) == 0; @candidates = OpenBSD::PackageName::findstem($stem, @pkgnames); # alternate interface $h = OpenBSD::PackageName::compile_stemlist(@pkgnames); @candidates = $h->findstem($stem); DDEESSCCRRIIPPTTIIOONN # "OpenBSD::PackageName" is the canonical interface to package names handling. "OpenBSD::PackageName::url2pkgname($url)" strip an $url of path elements and ". ...