package pkgsrc::Dewey; use strict; use warnings; require Exporter; use AutoLoader; our @ISA = qw(Exporter); our @EXPORT = qw(dewey_cmp dewey_match); our $VERSION = '1.1'; require XSLoader; XSLoader::load('pkgsrc::Dewey', $VERSION); # Preloaded methods go here. # Autoload methods go after =cut, and are processed by the autosplit program. 1; __END__ # Below is stub documentation for your module. You'd better edit it! =head1 NAME pkgsrc::Dewey - Perl extension for comparing pkgsrc Dewey version numbers =head1 SYNOPSIS use pkgsrc::Dewey; dewey_cmp(lhs, op, rhs); dewey_match(pattern, package); =head1 DESCRIPTION C is a Perl extension for comparing pkgsrc Dewey version numbers. It provides two functions: C and C. C compares two pkgsrc Dewey version numbers. Both C and C should be version numbers (not containing any package names). If the operator C is invalid, C returns -1. Otherwise it returns 1 if the comparison is true and 0 if not. C compares the C against the C, and returns 1 if the C matches the C and 0 if not. Both the C and the C should contain a package name. =head2 EXPORT C, C =head1 SEE ALSO Homepage for the Perl module: L General information about pkgsrc: L The pkgsrc guide: L =head1 AUTHORS Dieter Baron Edillo@NetBSD.orgE and Thomas Klausner Ewiz@NetBSD.orgE =head1 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. =cut