This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #32639] [PATCH] Bug in Term::Complete Module with $_ Usage
authorSteve Peters <steve@fisharerojo.org>
Fri, 26 Nov 2004 17:14:33 +0000 (17:14 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Fri, 26 Nov 2004 17:20:46 +0000 (17:20 +0000)
From: "Steve Peters via RT" <perlbug-followup@perl.org>
Message-ID: <rt-3.0.11-32639-101066.11.6172971744206@perl.org>

p4raw-id: //depot/perl@23548

lib/Term/Complete.pm

index c74907b..601e495 100644 (file)
@@ -5,7 +5,7 @@ require Exporter;
 use strict;
 our @ISA = qw(Exporter);
 our @EXPORT = qw(Complete);
-our $VERSION = '1.401';
+our $VERSION = '1.402';
 
 #      @(#)complete.pl,v1.2            (me@anywhere.EBay.Sun.COM) 09/23/91
 
@@ -113,6 +113,7 @@ sub Complete {
     }
     system $tty_raw_noecho if defined $tty_raw_noecho;
     LOOP: {
+        local $_;
         print($prompt, $return);
         while (($_ = getc(STDIN)) ne "\r") {
             CASE: {