/usr/share/perl5/Biber/Entries.pm is in biber 1.9-3+deb8u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | package Biber::Entries;
use v5.16;
use strict;
use warnings;
=encoding utf-8
=head1 NAME
Biber::Entries - Biber::Entries objects
=head2 new
Initialize a Biber::Entries object
=cut
sub new {
my ($class) = @_;
my $self = bless {}, $class;
return $self;
}
=head2 notnull
Test for an empty object
=cut
sub notnull {
my $self = shift;
my @arr = keys %$self;
return $#arr > -1 ? 1 : 0;
}
=head2 entry_exists
Boolean values sub to tell if there is an entry
for the passed citation key.
=cut
sub entry_exists {
my ($self, $citekey) = @_;
return defined($self->{$citekey}) ? 1 : 0;
}
=head2 entry
Returns a Biber::Entry object for a given
citekey
=cut
sub entry {
my ($self, $citekey) = @_;
return $self->{$citekey};
}
=head2 entries
Returns an array of all Biber::Entry objects
=cut
sub entries {
my $self = shift;
return values %$self;
}
=head2 del_entries
Deletes all Biber::Entry objects
=cut
sub del_entries {
my $self = shift;
foreach my $e (keys %$self) {
delete($self->{$e});
}
return;
}
=head2 add_entry
Adds a Biber::Entry to the Biber::Entries object
=cut
sub add_entry {
my $self = shift;
my ($key, $entry) = @_;
$self->{$key} = $entry;
return;
}
=head2 del_entry
Deletes a Biber::Entry object for a given
citekey. Only used in tests in order to reset
data before regeneration with different options.
=cut
sub del_entry {
my ($self, $citekey) = @_;
delete($self->{$citekey});
return;
}
1;
__END__
=head1 AUTHORS
François Charette, C<< <firmicus at ankabut.net> >>
Philip Kime C<< <philip at kime.org.uk> >>
=head1 BUGS
Please report any bugs or feature requests on our Github tracker at
L<https://github.com/plk/biber/issues>.
=head1 COPYRIGHT & LICENSE
Copyright 2009-2014 François Charette and Philip Kime, all rights reserved.
This module is free software. You can redistribute it and/or
modify it under the terms of the Artistic License 2.0.
This program is distributed in the hope that it will be useful,
but without any warranty; without even the implied warranty of
merchantability or fitness for a particular purpose.
=cut
|