This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9795ab
)
make Term::Readline::get_line() independent of caller's $/
author
Kurt D. Starsinic
<kstar@wolfetech.com>
Mon, 13 Jul 1998 15:17:49 +0000
(11:17 -0400)
committer
Gurusamy Sarathy
<gsar@cpan.org>
Tue, 14 Jul 1998 03:58:13 +0000
(
03:58
+0000)
Message-ID: <
19980713151749
.G8596@O2.chapin.edu>
Subject: [PATCH] Was: CPAN.pm still fails
p4raw-id: //depot/perl@1474
lib/Term/ReadLine.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Term/ReadLine.pm
b/lib/Term/ReadLine.pm
index
83ba375
..
470226d
100644
(file)
--- a/
lib/Term/ReadLine.pm
+++ b/
lib/Term/ReadLine.pm
@@
-357,6
+357,7
@@
sub get_line {
my $self = shift;
$self->Tk_loop if $Term::ReadLine::toloop && defined &Tk::DoOneEvent;
my $in = $self->IN;
+ local ($/) = "\n";
return scalar <$in>;
}