NAME

Slob - Read .slob dictionaries (as used by Aard 2)

SYNOPSIS

use feature qw/:5.14/;
use Slob;
my $slob = Slob->new('path/to/dict.slob');

my $nr_of_entries = $slob->ref_count; # if the same content has two
                                      # keys pointing to it, this
                                      # counts it twice

my $second_ref = $slob->seek_and_read_ref(4);
say "Entry is for $second_ref->{key}";
say "Data is in bin $second_ref->{bin_index} at position $second_ref->{item_index}";

my $bin = $slob->seek_and_read_storage_bin($second_ref->{bin_index});
say "Bin has ", (scalar @{$bin->{positions}}), " entries";
say "Value at position $second_ref->{item_index} is ",
  $slob->get_entry_of_storage_bin($bin, $second_ref->{item_index});

DESCRIPTION

No documentation yet, see SYNOPSIS.

AUTHOR

Marius Gavrilescu, <marius@ieval.ro>

COPYRIGHT AND LICENSE

Copyright (C) 2017 by Marius Gavrilescu

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.26.1 or, at your option, any later version of Perl 5 you may have available.