]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/CGI/Maypole.pm
CGI::Maypole documentation update
[maypole.git] / lib / CGI / Maypole.pm
index 793d47fb1d5c3ea1032841719281e05afc35fb4e..b7e5ca26c7966570f32afb669052d4dd08ed51ad 100644 (file)
@@ -6,7 +6,7 @@ use warnings;
 use CGI::Simple;
 use Maypole::Headers;
 
-our $VERSION = '2.05';
+our $VERSION = '2.10';
 
 sub run {
     my $self = shift;
@@ -58,7 +58,7 @@ sub send_output {
         -charset         => $r->{document_encoding},
         -content_length  => do { use bytes; length $r->{output} },
     );
-    foreach ($r->headers_out->header_field_names) {
+    foreach ($r->headers_out->field_names) {
         next if /^Content-(Type|Length)/;
         $headers{"-$_"} = $r->headers_out->get($_);
     }
@@ -101,10 +101,15 @@ CGI::Maypole - CGI-based front-end to Maypole
 Now to access the beer database, type this URL into your browser:
 http://your.site/cgi-bin/beer.cgi/frontpage
 
+NOTE: this Maypole frontend requires additional modules that won't be installed or included with Maypole. Please see below.
+
 =head1 DESCRIPTION
 
-This is a handler for Maypole which will use the CGI instead of Apache's
-C<mod_perl> 1.x. This handler can also be used for Apache 2.0.
+This is a CGI platform driver for Maypole. Your application can inherit from
+CGI::Maypole directly, but it is recommended that you use
+L<Maypole::Application>.
+
+This module requires CGI::Simple which you will have to install yourself via CPAN or manually.
 
 =head1 METHODS
 
@@ -118,7 +123,7 @@ Call this from your CGI script to start the Maypole application.
 
 =head1 Implementation
 
-This class overrides a set of methods in the base Maypole class to provide it's 
+This class overrides a set of methods in the base Maypole class to provide it's
 functionality. See L<Maypole> for these:
 
 =over
@@ -135,8 +140,14 @@ functionality. See L<Maypole> for these:
 
 =back
 
+=head1 DEPENDANCIES
+
+CGI::Simple
+
 =head1 AUTHORS
 
 Dave Ranney C<dave@sialia.com>
 
 Simon Cozens C<simon@cpan.org>
+
+=cut