git.shiar.nl
/
perl
/
plp
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
code cleanup (mainly improving comments)
[perl/plp/.git]
/
PLP
/
Tie
/
Print.pm
diff --git
a/PLP/Tie/Print.pm
b/PLP/Tie/Print.pm
index 9d0c0a9e5e5f59e00ddc845644af5c5966dfffda..3d5027a187dc2a1835190d46da87d40530975550 100644
(file)
--- a/
PLP/Tie/Print.pm
+++ b/
PLP/Tie/Print.pm
@@
-1,6
+1,5
@@
-#--------------------#
- package PLP::Tie::Print;
-#--------------------#
+package PLP::Tie::Print;
+
use strict;
=head1 PLP::Tie::Print
use strict;
=head1 PLP::Tie::Print
@@
-9,6
+8,8
@@
Just prints to stdout, but sends headers if not sent before.
tie *HANDLE, 'PLP::Tie::Print';
tie *HANDLE, 'PLP::Tie::Print';
+This module is part of the PLP Internals and probably not of much use to others.
+
=cut
sub TIEHANDLE {
=cut
sub TIEHANDLE {
@@
-19,6
+20,7
@@
sub WRITE { undef; }
sub PRINT {
my ($self, @param) = @_;
sub PRINT {
my ($self, @param) = @_;
+ return if @param == 1 and not length $param[0];
PLP::sendheaders() unless $PLP::sentheaders;
print STDOUT @param;
select STDOUT;
PLP::sendheaders() unless $PLP::sentheaders;
print STDOUT @param;
select STDOUT;