In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/aeeb13907a575905ecbff42fc030f66088fa79b1?hp=38b3c827d86b040f3d6f398e5a8cb318bc031ed4>
- Log ----------------------------------------------------------------- commit aeeb13907a575905ecbff42fc030f66088fa79b1 Author: Gabor Szabo <[email protected]> Date: Mon Jun 22 22:42:57 2009 +0300 avoid trying to load packages that are in the same file (amended by rgs) ----------------------------------------------------------------------- Summary of changes: lib/Term/ReadLine.pm | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/lib/Term/ReadLine.pm b/lib/Term/ReadLine.pm index d251271..9681c11 100644 --- a/lib/Term/ReadLine.pm +++ b/lib/Term/ReadLine.pm @@ -303,7 +303,7 @@ sub get_line { package Term::ReadLine; # So late to allow the above code be defined? -our $VERSION = '1.03'; +our $VERSION = '1.04'; my ($which) = exists $ENV{PERL_RL} ? split /\s+/, $ENV{PERL_RL} : undef; if ($which) { @@ -311,6 +311,9 @@ if ($which) { eval "use Term::ReadLine::Gnu;"; } elsif ($which =~ /\bperl\b/i) { eval "use Term::ReadLine::Perl;"; + } elsif ($which =~ /^(Stub|TermCap|Tk)$/) { + # it is already in memory to avoid false exception as seen in: + # PERL_RL=Stub perl -e'$SIG{__DIE__} = sub { print @_ }; require Term::ReadLine' } else { eval "use Term::ReadLine::$which;"; } -- Perl5 Master Repository
