Dewey(3)

NAME
pkgsrc::Dewey - Perl extension for comparing pkgsrc Dewey version numbers

SYNOPSIS
        use pkgsrc::Dewey;
        dewey_cmp(lhs, op, rhs);
        dewey_match(pattern, package);

DESCRIPTION
"pkgsrc::Dewey" is a Perl extension for comparing pkgsrc Dewey version numbers. It provides two functions: "dewey_cmp()" and "dewey_match()".

"dewey_cmp(lhs, op, rhs)" compares two pkgsrc Dewey version numbers. Both "lhs" and "rhs" should be version numbers (not containing any package names). If the operator "op" is invalid, "dewey_cmp" returns -1. Otherwise it returns 1 if the comparison is true and 0 if not.

"dewey_match(pattern, package)" compares the "pattern" against the "package", and returns 1 if the "package" matches the "pattern" and 0 if not. Both the "pattern" and the "package" should contain a package name.

  EXPORT
"dewey_cmp()", "dewey_match()"

SEE ALSO
Homepage for the Perl module: <http://www.netbsd.org/packages/pkgtools/p5-pkgsrc-Dewey/README.html>

General information about pkgsrc: <http://www.pkgsrc.org/>

The pkgsrc guide: <http://www.netbsd.org/docs/pkgsrc/>

AUTHORS
Dieter Baron <dillo@NetBSD.org> and Thomas Klausner <wiz@NetBSD.org>

COPYRIGHT AND LICENSE
Copyright (C) 2005 by Dieter Baron and Thomas Klausner

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available, or the 2 clause BSD license.