diff options
author | Gisle Aas <gisle@activestate.com> | 2008-09-20 18:13:37 +0000 |
---|---|---|
committer | Gisle Aas <gisle@activestate.com> | 2008-09-20 18:13:37 +0000 |
commit | 5eb30066fe9d342a31fbfdb741041326bde4087b (patch) | |
tree | 7632f34c64f6127c92788d7418ed90afc050ecc0 | |
parent | 1da83c398c391a42bd326a11e7d54ade047360a7 (diff) | |
download | perl-5eb30066fe9d342a31fbfdb741041326bde4087b.tar.gz |
Implement IO::Handle::say the same way as the builtin say().
IO::Handle::say used to output $, before the newline.
p4raw-id: //depot/perl@34384
-rw-r--r-- | ext/IO/lib/IO/Handle.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/IO/lib/IO/Handle.pm b/ext/IO/lib/IO/Handle.pm index 778841118b..fa49896671 100644 --- 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 { |