OpenBSD::PackageName man page on OpenBSD

Man page or keyword search:  
man Server   11362 pages
apropos Keyword Search (all sections)
Output format
OpenBSD logo
[printable version]

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

NAME
       OpenBSD::PackageName - package names handling

SYNOPSIS
	  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);

DESCRIPTION
       "OpenBSD::PackageName" is the canonical interface to package names
       handling.

       "OpenBSD::PackageName::url2pkgname($url)"
	   strip an $url of path elements and ".tgz" suffixes, yield a
	   canonicalized package name.

       "OpenBSD::PackageName::splitname($pkgname)"
	   split a $pkgname into a $stem, a $version number, and a (possibly
	   empty) list of @flavors components.	If the name contains no
	   identifiable version, $version will be "undef".

       "OpenBSD::PackageName::splitstem($pkgname)"
	   short version of "splitname" that extracts only the $stem.

       "OpenBSD::PackageName::is_stem($string)"
	   check whether a $string is a valid stem, as opposed to a full
	   package name.  Useful for commands that take either full names or
	   stems, and need to reconstruct the full name from the stem.

       "OpenBSD::PackageName::findstem($stem, @pkgnames)"
	   look up a $stem into a list of @pkgnames. Return a list of
	   candidates for further processing.

       "OpenBSD::PackageName::compile_stemlist(@pkgnames)"
	   alternate interface that is faster when lots of look ups are
	   involved.  Compile a list of @pkgnames into an object $h that can
	   be queried using "$h->findstem($stem)".

perl v5.12.2							 June 30, 2010
[top]

List of man pages available for OpenBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net