X-Git-Url: http://git.shiar.net/perl/plp/.git/blobdiff_plain/fa3bff5b76161e1573a47623d0737a8e3a5d0dd9..4b924b1351d4a8ea42652533081a3ea62df110e4:/lib/PLP.pm diff --git a/lib/PLP.pm b/lib/PLP.pm index e3fe961..37d95b1 100644 --- a/lib/PLP.pm +++ b/lib/PLP.pm @@ -12,8 +12,9 @@ use File::Basename (); 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 @@ -93,7 +94,10 @@ sub 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"; } {