1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
package Maypole::Constants;
use strict;
use base 'Exporter';
use constant OK => 0;
use constant DECLINED => -1;
use constant ERROR => -1;
our @EXPORT = qw(OK DECLINED ERROR);
our $VERSION = "1." . sprintf "%04d", q$Rev: 354 $ =~ /: (\d+)/;
1;
=head1 NAME
Maypole::Constants - Maypole predefined constants
=head1 SYNOPSIS
use Maypole::Constants;
sub authenticate {
if (valid_user()) {
return OK;
} else {
return DECLINED
}
}
=head1 DESCRIPTION
This class defines constants for use with Maypole
=head2 CONSTANTS
=head3 OK
=head3 DECLINED
=head3 ERROR
=head1 SEE ALSO
L<Maypole>
=head1 MAINTAINER
Aaron Trevena, c<teejay@droogs.org>
=head1 AUTHOR
Simon Cozens, C<simon@cpan.org>
=head1 LICENSE
You may distribute this code under the same terms as Perl itself.
=cut
|