line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package mylib; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
5784
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
38
|
|
4
|
1
|
|
|
1
|
|
4
|
use vars qw($VERSION @ISA @EXPORT_OK $Prefix $Bin $Lib $Etc); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
122
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
$VERSION = "1.02"; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
require Exporter; |
9
|
|
|
|
|
|
|
@ISA = ('Exporter'); |
10
|
|
|
|
|
|
|
@EXPORT_OK = qw($Prefix $Bin $Lib $Etc); |
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
1
|
|
829
|
use FindBin qw($RealBin); |
|
1
|
|
|
|
|
1225
|
|
|
1
|
|
|
|
|
224
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
$Prefix = $Bin = $RealBin; |
15
|
|
|
|
|
|
|
$Lib = "$Prefix/lib"; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
unless (-d $Lib) { |
18
|
|
|
|
|
|
|
require File::Basename; |
19
|
|
|
|
|
|
|
$Prefix = File::Basename::dirname($Prefix); |
20
|
|
|
|
|
|
|
$Lib = "$Prefix/lib"; |
21
|
|
|
|
|
|
|
unless (-d $Lib) { |
22
|
|
|
|
|
|
|
die "Can't find lib in either $Bin or $Prefix, stopped"; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
$Etc = "$Prefix/etc"; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
require lib; |
29
|
|
|
|
|
|
|
lib->import($Lib); |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
__END__ |