| 1 | package PPI; | ||||||||||||||||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||||||||||||||||
| 3 | # See POD at end for documentation | ||||||||||||||||||||||||||||||||||||||||||
| 4 | |||||||||||||||||||||||||||||||||||||||||||
| 5 | 62 | ▶ | use 5.006; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 6 | 62 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||||||||||||||||
| 8 | # Set the version for CPAN | ||||||||||||||||||||||||||||||||||||||||||
| 9 | 62 | ▶ | use vars qw{$VERSION $XS_COMPATIBLE @XS_EXCLUDE}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 10 | BEGIN { | ||||||||||||||||||||||||||||||||||||||||||
| 11 | 62 | ▶ | $VERSION = '1.236'; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 12 | 62 | $XS_COMPATIBLE = '0.845'; | |||||||||||||||||||||||||||||||||||||||||
| 13 | 62 | @XS_EXCLUDE = (); | |||||||||||||||||||||||||||||||||||||||||
| 14 | } | ||||||||||||||||||||||||||||||||||||||||||
| 15 | |||||||||||||||||||||||||||||||||||||||||||
| 16 | # Load everything | ||||||||||||||||||||||||||||||||||||||||||
| 17 | 62 | ▶ | use PPI::Util (); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 18 | 62 | ▶ | use PPI::Exception (); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 19 | 62 | ▶ | use PPI::Element (); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 20 | 62 | ▶ | use PPI::Token (); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 21 | 62 | ▶ | use PPI::Statement (); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 22 | 62 | ▶ | use PPI::Structure (); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 23 | 62 | ▶ | use PPI::Document (); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 24 | 62 | ▶ | use PPI::Document::File (); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 25 | 62 | ▶ | use PPI::Document::Fragment (); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 26 | 62 | ▶ | use PPI::Document::Normalized (); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 27 | 62 | ▶ | use PPI::Normal (); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 28 | 62 | ▶ | use PPI::Tokenizer (); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 29 | 62 | ▶ | use PPI::Lexer (); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 30 | |||||||||||||||||||||||||||||||||||||||||||
| 31 | # If it is installed, load in PPI::XS | ||||||||||||||||||||||||||||||||||||||||||
| 32 | die | ||||||||||||||||||||||||||||||||||||||||||
| 33 | if !$PPI::XS_DISABLE | ||||||||||||||||||||||||||||||||||||||||||
| 34 | 62 | ▶ | and !eval { require PPI::XS; 1 } | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%2/6
$PPI::XS_DISABLE or eval {
do {
require PPI::XS;
1
}
} or $@ =~ /^Can't locate .*? at /
$PPI::XS_DISABLE or eval {
do {
require PPI::XS;
1
}
}
MC/DC0%0/3
$PPI::XS_DISABLE or eval {
do {
require PPI::XS;
1
}
} or $@ =~ /^Can't locate .*? at /
$PPI::XS_DISABLE
eval {
do {
require PPI::XS;
1
}
}
$@ =~ /^Can't locate .*? at /
Truth table0%0/4
A or B or C
A= $PPI::XS_DISABLEB= eval {
do {
require PPI::XS;
1
}
}C= $@ =~ /^Can't locate .*? at /
| |||||||||||||||||||||||||||||||||||||||||||
| 35 | and $@ !~ /^Can't locate .*? at /; # ignore failure to load if not installed | ||||||||||||||||||||||||||||||||||||||||||
| 36 | |||||||||||||||||||||||||||||||||||||||||||
| 37 | 62 | 1; | |||||||||||||||||||||||||||||||||||||||||
| 38 | |||||||||||||||||||||||||||||||||||||||||||
| 39 | __END__ | ||||||||||||||||||||||||||||||||||||||||||