diff options
Diffstat (limited to 'ext/Pod-Simple/lib/Pod/Simple/Transcode.pm')
-rw-r--r-- | ext/Pod-Simple/lib/Pod/Simple/Transcode.pm | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/ext/Pod-Simple/lib/Pod/Simple/Transcode.pm b/ext/Pod-Simple/lib/Pod/Simple/Transcode.pm new file mode 100644 index 0000000000..434f963388 --- /dev/null +++ b/ext/Pod-Simple/lib/Pod/Simple/Transcode.pm @@ -0,0 +1,33 @@ + +require 5; +package Pod::Simple::Transcode; + +BEGIN { + if(defined &DEBUG) {;} # Okay + elsif( defined &Pod::Simple::DEBUG ) { *DEBUG = \&Pod::Simple::DEBUG; } + else { *DEBUG = sub () {0}; } +} + +foreach my $class ( + 'Pod::Simple::TranscodeSmart', + 'Pod::Simple::TranscodeDumb', + '', +) { + $class or die "Couldn't load any encoding classes"; + DEBUG and print "About to try loading $class...\n"; + eval "require $class;"; + if($@) { + DEBUG and print "Couldn't load $class: $@\n"; + } else { + DEBUG and print "OK, loaded $class.\n"; + @ISA = ($class); + last; + } +} + +sub _blorp { return; } # just to avoid any "empty class" warning + +1; +__END__ + + |