| 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__ |