blib/lib/Image/Info/SVG.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 28 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 # -*- perl -*-
2  
3 #
4 # Author: Slaven Rezic
5 #
6 # Copyright (C) 2009,2011,2016,2017 Slaven Rezic. All rights reserved.
7 # This package is free software; you can redistribute it and/or
8 # modify it under the same terms as Perl itself.
9 #
10  
11 package Image::Info::SVG;
12  
13 use strict;
14 use vars qw($VERSION @PREFER_MODULE $USING_MODULE);
15 $VERSION = '2.04';
16  
17 @PREFER_MODULE = qw(Image::Info::SVG::XMLLibXMLReader
18 Image::Info::SVG::XMLSimple
19 )
20 if !@PREFER_MODULE;
21  
22 TRY_MODULE: {
23 for my $try_module (@PREFER_MODULE) {
24 if (eval qq{ require $try_module; 1 }) {
25 my $sub = $try_module . '::process_file';
26 no strict 'refs';
27 *process_file = \&{$sub};
28 $USING_MODULE = $try_module;
29 last TRY_MODULE;
30 }
31 }
32 die "Cannot require any of @PREFER_MODULE...\n";
33 }
34  
35 1;
36  
37 __END__