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
makefile cleanup
[perl/plp/.git]
/
PLP
/
Tie
/
Print.pm
diff --git
a/PLP/Tie/Print.pm
b/PLP/Tie/Print.pm
index 4c6983f838a3d5cfe8f0efd420a97d085dfc4fb0..83b5c76726f7b41f30dd4411634e973b5b5c2521 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
@@
-13,23
+12,23
@@
This module is part of the PLP Internals and probably not of much use to others.
=cut
=cut
-sub TIEHANDLE {
- return bless {}, $_[0];
-}
+sub TIEHANDLE { bless \my $dummy, $_[0] }
-sub WRITE { undef
;
}
+sub WRITE { undef }
sub PRINT {
sub PRINT {
-
my ($self, @param) = @_
;
- return
if @param == 1 and not length $param[0]
;
+
shift
;
+ return
unless grep length, @_
;
PLP::sendheaders() unless $PLP::sentheaders;
PLP::sendheaders() unless $PLP::sentheaders;
- print STDOUT @
param
;
+ print STDOUT @
_
;
select STDOUT;
}
sub PRINTF {
select STDOUT;
}
sub PRINTF {
- my ($self, @param) = @_;
- printf STDOUT @param;
+ shift;
+ return unless length $_[0];
+ PLP::sendheaders() unless $PLP::sentheaders;
+ printf STDOUT @_;
select STDOUT;
}
select STDOUT;
}
@@
-43,5
+42,7
@@
sub CLOSE { undef }
sub UNTIE { undef }
sub UNTIE { undef }
+sub DESTROY { undef }
+
1;
1;