diff options
author | Josh ben Jore <jjore@cpan.org> | 2010-07-15 13:04:26 +0000 |
---|---|---|
committer | Josh ben Jore <jjore@cpan.org> | 2010-07-15 13:04:26 +0000 |
commit | bf320d637919b3a2a72298748aa76e686e9b3e45 (patch) | |
tree | 72171279ea3c7f071b22b231653f4fbc0ef7b239 /lib | |
parent | a3e07c8779a37a0cc0a4e5ceac72eec0b30c0c0c (diff) | |
download | perl-bf320d637919b3a2a72298748aa76e686e9b3e45.tar.gz |
Configure has a path to less and perl5db.pl can use it
Diffstat (limited to 'lib')
-rw-r--r-- | lib/perl5db.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/perl5db.pl b/lib/perl5db.pl index b49fc41d43..5ccdbbef79 100644 --- a/lib/perl5db.pl +++ b/lib/perl5db.pl @@ -7583,6 +7583,12 @@ C<$ENV{LESS}> so we don't have to go through doing the stats again. sub fix_less { + my $config_less = eval { + require Config; + $Config::Config{less}; + }; + return $config_less if $config_less; + # We already know if this is set. return if defined $ENV{LESS} && $ENV{LESS} =~ /r/; |