use File::Spec;
use strict;
+use warnings;
our $VERSION = '3.20';
# Wrap old request handlers.
sub everything {
require PLP::Backend::CGI;
- PLP::Backend::CGI::everything();
+ PLP::Backend::CGI->everything();
}
sub handler {
require PLP::Backend::Apache;
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";
}
{