| 1 | package | ||||||||||
| 2 | Archive::Libarchive::Any::_version; | ||||||||||
| 3 | |||||||||||
| 4 | # PODNAME: (Deprecated) Archive::Libarchive::Any | ||||||||||
| 5 | our $VERSION = '0.0901'; # VERSION | ||||||||||
| 6 | |||||||||||
| 7 | 27 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 27 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 27 | ▶ | BEGIN { | ||||||||
|
Subroutine
BEGIN: called CC=7 SCAR=23.0
| |||||||||||
| 11 | 27 | my $ok = 0; | |||||||||
| 12 | |||||||||||
| 13 | 27 | my @list = qw( XS FFI ); | |||||||||
| 14 | unshift @list, $ENV{ARCHIVE_LIBARCHIVE_ANY} | ||||||||||
| 15 | 27 | ▶ | if defined $ENV{ARCHIVE_LIBARCHIVE_ANY}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 16 | |||||||||||
| 17 | 27 | foreach my $impl (@list) | |||||||||
| 18 | { | ||||||||||
| 19 | 54 | ▶ | next if $impl eq 'Any'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | 54 | my $str = qq{ | |||||||||
| 21 | use Archive::Libarchive::$impl; | ||||||||||
| 22 | *Archive::Libarchive::Any:: = *Archive::Libarchive::$impl\::; | ||||||||||
| 23 | }; | ||||||||||
| 24 | 0 | ▶ | eval $str; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=1.7
Subroutine
BEGIN: called CC=1 SCAR=1.7
| |||||||||||
| 25 | 54 | ▶ | if($@) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 26 | warn "Archive::Libarchive::$impl\: $@" | ||||||||||
| 27 | 54 | ▶ | if $ENV{ARCHIVE_LIBARCHIVE_ANY_VERBOSE}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 28 | } else { | ||||||||||
| 29 | 0 | $ok = 1; | |||||||||
| 30 | 0 | last; | |||||||||
| 31 | } | ||||||||||
| 32 | } | ||||||||||
| 33 | 27 | ▶ | die "could not find an appropriate libarchive implementation" unless $ok; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 34 | }; | ||||||||||
| 35 | |||||||||||
| 36 | package Archive::Libarchive::Any; | ||||||||||
| 37 | |||||||||||
| 38 | # ABSTRACT: Perl bindings to libarchive | ||||||||||
| 39 | |||||||||||
| 40 | if(0) { | ||||||||||
| 41 | |||||||||||
| 42 | our $VERSION = '0.0901'; # VERSION | ||||||||||
| 43 | |||||||||||
| 44 | } | ||||||||||
| 45 | |||||||||||
| 46 | |||||||||||
| 47 | 1; | ||||||||||
| 48 | |||||||||||
| 49 | __END__ | ||||||||||