X-Git-Url: http://git.shiar.net/perl/plp/.git/blobdiff_plain/0daff7b8f9f15f54cfd2af57e4c8f868db199dda..47ba656450de67f0bdf3e01dd920e744c2fa9218:/PLP/Tie/Print.pm diff --git a/PLP/Tie/Print.pm b/PLP/Tie/Print.pm index 8ec4e4a..83b5c76 100644 --- a/PLP/Tie/Print.pm +++ b/PLP/Tie/Print.pm @@ -18,7 +18,7 @@ sub WRITE { undef } sub PRINT { shift; - return if @_ == 1 and not length $_[0]; + return unless grep length, @_; PLP::sendheaders() unless $PLP::sentheaders; print STDOUT @_; select STDOUT; @@ -26,6 +26,8 @@ sub PRINT { sub PRINTF { shift; + return unless length $_[0]; + PLP::sendheaders() unless $PLP::sentheaders; printf STDOUT @_; select STDOUT; }