| 1 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | use 5.020; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 0 | ▶ | use Archive::Libarchive qw( :const ); |
|
Subroutine
BEGIN: called CC=1 SCAR=2.6
| |||
| 5 | |||
| 6 | my $r = Archive::Libarchive::ArchiveRead->new; | ||
| 7 | $r->support_filter_all; | ||
| 8 | $r->support_format_all; | ||
| 9 | $r->open_filename("archive.tar", 10240) == ARCHIVE_OK | ||
| 10 | or die $r->error_string; | ||
| 11 | |||
| 12 | my $e = Archive::Libarchive::Entry->new; | ||
| 13 | say $e->pathname while $r->next_header($e) == ARCHIVE_OK; | ||