projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
1da83c3
)
Implement IO::Handle::say the same way as the builtin say().
Gisle Aas [Sat, 20 Sep 2008 18:13:37 +0000 (18:13 +0000)]
IO::Handle::say used to output $, before the newline.
p4raw-id: //depot/perl@34384
ext/IO/lib/IO/Handle.pm
patch
|
blob
|
blame
|
history
diff --git
a/ext/IO/lib/IO/Handle.pm
b/ext/IO/lib/IO/Handle.pm
index
7788411
..
fa49896
100644
(file)
--- a/
ext/IO/lib/IO/Handle.pm
+++ b/
ext/IO/lib/IO/Handle.pm
@@
-412,8
+412,8
@@
sub printf {
sub say {
@_ or croak 'usage: $io->say(ARGS)';
my $this = shift;
- local $\ = "";
- print $this @_, "\n";
+ local $\ = "\n";
+ print $this @_;
}
sub getline {