| 1 | package Acme::SList::XSLT; | ||
| 2 | $Acme::SList::XSLT::VERSION = '0.04'; | ||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | my ($mod_xslt, $mod_xml); | ||
| 7 | |||
| 8 | eval{ | ||
| 9 | require XML::LibXSLT; | ||
| 10 | $mod_xslt = 'XML::LibXSLT'; | ||
| 11 | $mod_xml = 'XML::LibXML'; | ||
| 12 | }; | ||
| 13 | if ($@) { | ||
| 14 | require Win32::MinXSLT; | ||
| 15 | $mod_xslt = 'Win32::MinXSLT'; | ||
| 16 | $mod_xml = 'Win32::MinXML'; | ||
| 17 | } | ||
| 18 | |||
| 19 | 0 | ▶ | sub module { $mod_xslt; } |
|
Subroutine
module: not called CC=1 SCAR=6.9
| |||
| 20 | |||
| 21 | 0 | ▶ | sub new { $mod_xslt->new; } |
|
Subroutine
new: not called CC=1 SCAR=6.9
| |||
| 22 | |||
| 23 | package Acme::SList::XML; | ||
| 24 | $Acme::SList::XML::VERSION = '0.04'; | ||
| 25 | 0 | ▶ | sub module { $mod_xml; } |
|
Subroutine
module: not called CC=1 SCAR=6.9
| |||
| 26 | |||
| 27 | 0 | ▶ | sub new { $mod_xml->new; } |
|
Subroutine
new: not called CC=1 SCAR=6.9
| |||
| 28 | |||
| 29 | 1; | ||
| 30 | |||
| 31 | __END__ | ||