| Maypole documentation | Contained in the Maypole distribution. |
Maypole::Constants - Maypole predefined constants
use Maypole::Constants;
sub authenticate {
if (valid_user()) {
return OK;
} else {
return DECLINED
}
}
This class defines constants for use with Maypole
Aaron Trevena, c<teejay@droogs.org>
Simon Cozens, simon@cpan.org
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;