projects
/
p5sagit/p5-mst-13.2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
prototype() didn't warn when used in void context.
[p5sagit/p5-mst-13.2.git]
/
t
/
lib
/
TieOut.pm
diff --git
a/t/lib/TieOut.pm
b/t/lib/TieOut.pm
index
0da80cb
..
072e8fd
100644
(file)
--- a/
t/lib/TieOut.pm
+++ b/
t/lib/TieOut.pm
@@
-9,6
+9,12
@@
sub PRINT {
$$self .= join('', @_);
}
+sub PRINTF {
+ my $self = shift;
+ my $fmt = shift;
+ $$self .= sprintf $fmt, @_;
+}
+
sub read {
my $self = shift;
return substr($$self, 0, length($$self), '');