Pager/less.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran 0.0% 0 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 30 SCAR 30.0
CC
4
Cov
0%
BEGIN
20.0
BEGIN
2.0
BEGIN
2.0
CRAP 20.0
1 package IO::Pager::less;
2 our $VERSION = 2.00; #Untouched since 2.00
3  
4 use strict;
5 use warnings;
6 use base qw( IO::Pager::Unbuffered );
7  
8 BEGIN{
9 die "Windows is currently unsupported" if $^O =~ /MSWin32/;
10 my $PAGER;
11  
12 #Required for test 16
13 our $BLIB;
14  
15 #local $ENV{PATHEXT} .= ";.PL"
16 foreach my $lib ( @INC ){
17 $PAGER = File::Spec->catfile($lib, 'IO', 'Pager', 'tp');
18 if( -e $PAGER ){
19 #Required for test 16
20 $ENV{PAGER} = $^X.($BLIB?' -Mblib ':' ').$PAGER;
21 last;
22 }
23 }
24 }
25  
26 1;
27  
28 __DATA__