]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Maypole/Constants.pm
minor POD fixes
[maypole.git] / lib / Maypole / Constants.pm
index 69178502bbdccf7a824d103805a2cb3c0aee7275..dcf35e5b6561012e16d1911f3442d8ce284ff1a2 100644 (file)
@@ -6,14 +6,36 @@ use constant ERROR    => -1;
 our @EXPORT = qw(OK DECLINED ERROR);
 our $VERSION = "1." . sprintf "%04d", q$Rev$ =~ /: (\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>
@@ -31,4 +53,3 @@ Simon Cozens, C<simon@cpan.org>
 You may distribute this code under the same terms as Perl itself.
 
 =cut
-1;