X-Git-Url: http://git.shiar.net/perl/plp/.git/blobdiff_plain/ec7d20c2e33d8c240c6687adecbefa92410a9b41..4b924b1351d4a8ea42652533081a3ea62df110e4:/lib/PLP.pm diff --git a/lib/PLP.pm b/lib/PLP.pm index f1ad4f8..37d95b1 100644 --- a/lib/PLP.pm +++ b/lib/PLP.pm @@ -12,6 +12,7 @@ use File::Basename (); use File::Spec; use strict; +use warnings; our $VERSION = '3.20'; @@ -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"; } {