Skip to content

Commit 841835c

Browse files
gisleiabyn
authored andcommitted
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 (cherry picked from commit 5eb3006)
1 parent 85c5664 commit 841835c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/IO/lib/IO/Handle.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,8 @@ sub printf {
412412
sub say {
413413
@_ or croak 'usage: $io->say(ARGS)';
414414
my $this = shift;
415-
local $\ = "";
416-
print $this @_, "\n";
415+
local $\ = "\n";
416+
print $this @_;
417417
}
418418

419419
sub getline {

0 commit comments

Comments
 (0)