| 1 | package Pod::Simple::Transcode; | ||||||||||||||
| 2 | 15 | ▶ | use strict; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 3 | 15 | our $VERSION = '3.48'; | |||||||||||||
| 4 | |||||||||||||||
| 5 | 15 | ▶ | BEGIN { | ||||||||||||
|
Subroutine
BEGIN: called CC=3 SCAR=13.1
| |||||||||||||||
| 6 | 15 | ▶ | if(defined &DEBUG) {;} # Okay | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 7 | 15 | elsif( defined &Pod::Simple::DEBUG ) { *DEBUG = \&Pod::Simple::DEBUG; } | |||||||||||||
| 8 | 0 | else { *DEBUG = sub () {0}; } | |||||||||||||
| 9 | } | ||||||||||||||
| 10 | |||||||||||||||
| 11 | 15 | our @ISA; | |||||||||||||
| 12 | 15 | foreach my $class ( | |||||||||||||
| 13 | 'Pod::Simple::TranscodeSmart', | ||||||||||||||
| 14 | 'Pod::Simple::TranscodeDumb', | ||||||||||||||
| 15 | '', | ||||||||||||||
| 16 | ) { | ||||||||||||||
| 17 | 15 | ▶ | $class or die "Couldn't load any encoding classes"; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 18 | 15 | DEBUG and print STDERR "About to try loading $class...\n"; | |||||||||||||
| 19 | 15 | eval "require $class;"; | |||||||||||||
| 20 | 15 | ▶ | if($@) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 21 | 0 | DEBUG and print STDERR "Couldn't load $class: $@\n"; | |||||||||||||
| 22 | } else { | ||||||||||||||
| 23 | 15 | DEBUG and print STDERR "OK, loaded $class.\n"; | |||||||||||||
| 24 | 15 | @ISA = ($class); | |||||||||||||
| 25 | 15 | last; | |||||||||||||
| 26 | } | ||||||||||||||
| 27 | } | ||||||||||||||
| 28 | |||||||||||||||
| 29 | 0 | ▶ | sub _blorp { return; } # just to avoid any "empty class" warning | ||||||||||||
|
Subroutine
_blorp: not called CC=1 SCAR=6.9
| |||||||||||||||
| 30 | |||||||||||||||
| 31 | 15 | 1; | |||||||||||||
| 32 | __END__ | ||||||||||||||