File Coverage

blib/lib/RTF/Config.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package RTF::Config;
2             $RTF::Config::VERSION = '1.12';
3 14     14   101 use strict;
  14         27  
  14         622  
4 14     14   79 use warnings;
  14         57  
  14         414  
5              
6 14     14   71 use Exporter;
  14         24  
  14         635  
7 14     14   78 use vars qw(@EXPORT @ISA $OS $LOG_FILE $LOG_CMD);
  14         20  
  14         1791  
8             @ISA = qw(Exporter);
9             @EXPORT = qw($LOG_CMD $LOG_FILE $OS);
10              
11             # PS 2014-04-14 - No idea what this is for, but it's not being used anywhere,
12             # it's horrible, and it changes $ENV{'PATH'}. Killing it with
13             # fire.
14              
15             # Some stuff borrowed to CGI.pm
16             # unless ($OS) {
17             # unless ( $OS = $^O ) {
18             # require Config;
19             # $OS = $Config::Config{'osname'};
20             # }
21             # }
22             # if ( $OS =~ /Win/i ) {
23             # $OS = 'WINDOWS';
24             # } elsif ( $OS =~ /vms/i ) {
25             # $OS = 'VMS';
26             # } elsif ( $OS =~ /Mac/i ) {
27             # $OS = 'MACINTOSH';
28             # } elsif ( $OS =~ /os2/i ) {
29             # $OS = 'OS2';
30             # } else {
31             # $ENV{'PATH'} = '/bin:/usr/bin';
32             # $OS = 'UNIX';
33             # $LOG_CMD = "| sort -d "; #$LOG_FILE";
34             # }
35              
36             1;
37             __END__