use File::Spec;
use strict;
+use warnings;
-our $VERSION = '3.19';
+our $VERSION = '3.20';
# Subs in this package:
# _default_error($plain, $html) Default error handler
sub sendheaders () {
$PLP::sentheaders ||= [ caller 1 ? (caller 1)[1, 2] : (caller)[1, 2] ];
print STDOUT "Content-Type: text/plain\n\n" if $PLP::DEBUG & 2;
- print STDOUT map("$_: $PLP::Script::header{$_}\n", keys %PLP::Script::header), "\n";
+ while (my ($header, $values) = each %PLP::Script::header) {
+ print STDOUT "$header: $_\n" for split /\n/, $values;
+ }
+ print STDOUT "\n";
}
{
F<lighttpd.conf> configuration using L<mod_fastcgi|PLP::Backend::FastCGI>:
- server.modules = (
- "mod_fastcgi",
- )
- fastcgi.server = (
- ".plp" => ((
- "bin-path" => "/usr/bin/perl -MPLP::Backend::FastCGI",
- "socket" => "/tmp/fcgi-plp.socket",
- )),
- )
+ server.modules += ("mod_fastcgi")
+ fastcgi.server += (".plp" => ((
+ "bin-path" => "/usr/bin/perl -MPLP::Backend::FastCGI",
+ "socket" => "/tmp/fcgi-plp.socket",
+ )))
=head2 Apache installation