X-Git-Url: http://git.shiar.nl/perl/plp/.git/blobdiff_plain/0f5e78a789961923b45cae1a881c655fff9e7283..32ae2f5b7adcaf002d10e60ac6ebad6b63adf23f:/PLP/Tie/Print.pm?ds=sidebyside diff --git a/PLP/Tie/Print.pm b/PLP/Tie/Print.pm index 7563ba5..4c6983f 100644 --- a/PLP/Tie/Print.pm +++ b/PLP/Tie/Print.pm @@ -9,6 +9,8 @@ Just prints to stdout, but sends headers if not sent before. tie *HANDLE, 'PLP::Tie::Print'; +This module is part of the PLP Internals and probably not of much use to others. + =cut sub TIEHANDLE { @@ -19,7 +21,8 @@ sub WRITE { undef; } sub PRINT { my ($self, @param) = @_; - PLP::SendHeaders() unless $PLP::sentheaders; + return if @param == 1 and not length $param[0]; + PLP::sendheaders() unless $PLP::sentheaders; print STDOUT @param; select STDOUT; }