| 1 | package Compress::Zstd::DecompressionDictionary; | ||||||||||
| 2 | 1 | ▶ | use 5.008001; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 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 | 1 | ▶ | use Compress::Zstd (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 1 | ▶ | sub new_from_file { | ||||||||
|
Subroutine
new_from_file: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||
| 9 | 1 | my ($class, $file) = @_; | |||||||||
| 10 | 1 | ▶ | open my $fh, '<', $file or die $!; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 11 | 1 | local $/; | |||||||||
| 12 | 1 | my $dict = <$fh>; | |||||||||
| 13 | 1 | close $fh; | |||||||||
| 14 | 1 | $class->new($dict); | |||||||||
| 15 | } | ||||||||||
| 16 | |||||||||||
| 17 | 1 | 1; | |||||||||
| 18 | __END__ | ||||||||||