X-Git-Url: http://git.shiar.nl/perl/plp/.git/blobdiff_plain/6db00316eea58801d93d78985f92ef97893903c9..HEAD:/lib/PLP.pm diff --git a/lib/PLP.pm b/lib/PLP.pm index 2e740cf..58120fa 100644 --- a/lib/PLP.pm +++ b/lib/PLP.pm @@ -14,7 +14,7 @@ use File::Spec; use strict; use warnings; -our $VERSION = '3.22_01'; +our $VERSION = '3.25'; # Subs in this package: # _default_error($plain, $html) Default error handler @@ -94,6 +94,7 @@ sub handler { # Sends the headers waiting in %PLP::Script::header sub sendheaders () { + local $\; # reset print behaviour if triggered by say() $PLP::sentheaders ||= [ caller 1 ? (caller 1)[1, 2] : (caller)[1, 2] ]; print STDOUT "Content-Type: text/plain\n\n" if $PLP::DEBUG & 2; while (my ($header, $values) = each %PLP::Script::header) { @@ -449,7 +450,7 @@ Originally by Juerd Waalboer =head1 LICENSE -Copyright (c) 2000-2002 Juerd Waalboer, 2005-2008 Mischa POSLAWSKY. +Copyright (c) 2000-2002 Juerd Waalboer, 2005-2018 Mischa POSLAWSKY. All rights reserved. This software is free software;