Maypole::Constants - Maypole predefined constants


Maypole documentation Contained in the Maypole distribution.

Index


Code Index:

NAME

Top

Maypole::Constants - Maypole predefined constants

SYNOPSIS

Top

    use Maypole::Constants;

    sub authenticate {
        if (valid_user()) {
            return OK;
        } else {
            return DECLINED
        }
    }

DESCRIPTION

Top

This class defines constants for use with Maypole

CONSTANTS

OK

DECLINED

ERROR

SEE ALSO

Top

Maypole

MAINTAINER

Top

Aaron Trevena, c<teejay@droogs.org>

AUTHOR

Top

Simon Cozens, simon@cpan.org

LICENSE

Top

You may distribute this code under the same terms as Perl itself.


Maypole documentation Contained in the Maypole distribution.

package Maypole::Constants;
use strict;
use base 'Exporter';
use constant OK       => 0;
use constant DECLINED => -1;
use constant ERROR    => 500;
our @EXPORT = qw(OK DECLINED ERROR);
our $VERSION = "1." . sprintf "%04d", q$Rev: 483 $ =~ /: (\d+)/;

1;