summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJosh ben Jore <jjore@cpan.org>2010-07-15 13:04:26 +0000
committerJosh ben Jore <jjore@cpan.org>2010-07-15 13:04:26 +0000
commitbf320d637919b3a2a72298748aa76e686e9b3e45 (patch)
tree72171279ea3c7f071b22b231653f4fbc0ef7b239 /lib
parenta3e07c8779a37a0cc0a4e5ceac72eec0b30c0c0c (diff)
downloadperl-bf320d637919b3a2a72298748aa76e686e9b3e45.tar.gz
Configure has a path to less and perl5db.pl can use it
Diffstat (limited to 'lib')
-rw-r--r--lib/perl5db.pl6
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/;