| 1 | package HTML::Perlinfo; | ||||||||||||||||||||||||||||
| 2 | 5 | ▶ | BEGIN { %HTML::Perlinfo::Seen = %INC } | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 3 | |||||||||||||||||||||||||||||
| 4 | 5 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | 5 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 6 | 5 | ▶ | use Carp (); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||
| 8 | 5 | ▶ | use HTML::Perlinfo::Apache; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 9 | 5 | ▶ | use HTML::Perlinfo::Modules; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 10 | 5 | ▶ | use HTML::Perlinfo::Common; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||
| 12 | 5 | ▶ | use base qw(Exporter HTML::Perlinfo::Base); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 13 | 5 | our @EXPORT = qw(perlinfo); | |||||||||||||||||||||||||||
| 14 | |||||||||||||||||||||||||||||
| 15 | 5 | our $VERSION = '1.71'; | |||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||
| 17 | sub perlinfo { | ||||||||||||||||||||||||||||
| 18 | 4 | ▶ | my ($opt) = @_; | ||||||||||||||||||||||||||
|
Subroutine
perlinfo: called CC=4 SCAR=15.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 19 | 4 | ▶ | $opt = 'INFO_ALL' unless $opt; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 20 | |||||||||||||||||||||||||||||
| 21 | 4 | ▶ | error_msg("Invalid perlinfo() parameter: @_") | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not $opt =~ /^INFO_(?:ALL|GENERAL|CONFIG|VARIABLES|APACHE|MODULES|LICENSE|LOADED)$/ or @_ > 1
MC/DC0%0/2
not $opt =~ /^INFO_(?:ALL|GENERAL|CONFIG|VARIABLES|APACHE|MODULES|LICENSE|LOADED)$/ or @_ > 1
not $opt =~ /^INFO_(?:ALL|GENERAL|CONFIG|VARIABLES|APACHE|MODULES|LICENSE|LOADED)$/
@_ > 1
Truth table33%1/3
not(A) or B
A= not $opt =~ /^INFO_(?:ALL|GENERAL|CONFIG|VARIABLES|APACHE|MODULES|LICENSE|LOADED)$/B= @_ > 1
| |||||||||||||||||||||||||||||
| 22 | if (($opt !~ /^INFO_(?:ALL|GENERAL|CONFIG|VARIABLES|APACHE|MODULES|LICENSE|LOADED)$/) || @_ > 1); | ||||||||||||||||||||||||||||
| 23 | |||||||||||||||||||||||||||||
| 24 | 4 | $opt = lc $opt; | |||||||||||||||||||||||||||
| 25 | 4 | my $p = HTML::Perlinfo->new(); | |||||||||||||||||||||||||||
| 26 | 4 | $p->$opt; | |||||||||||||||||||||||||||
| 27 | |||||||||||||||||||||||||||||
| 28 | } | ||||||||||||||||||||||||||||
| 29 | 5 | foreach my $key (%HTML::Perlinfo::Seen) { | |||||||||||||||||||||||||||
| 30 | 844 | ▶ | $INC{$key} = $HTML::Perlinfo::Seen{$key} unless exists $INC{$key}; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 31 | } | ||||||||||||||||||||||||||||
| 32 | 5 | 1; | |||||||||||||||||||||||||||
| 33 | __END__ | ||||||||||||||||||||||||||||