/usr/lib/x86_64-linux-gnu/perl5/5.22/Search/Xapian/MSetIterator.pm is in libsearch-xapian-perl 1.2.21.0-1build2.
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 | package Search::Xapian::MSetIterator;
use 5.006;
use strict;
use warnings;
use Carp;
require DynaLoader;
our @ISA = qw(DynaLoader);
# Preloaded methods go here.
# In a new thread, copy objects of this class to unblessed, undef values.
sub CLONE_SKIP { 1 }
use overload '++' => sub { $_[0]->inc() },
'--' => sub { $_[0]->dec() },
'=' => sub { $_[0]->clone() },
'eq' => sub { $_[0]->equal($_[1]) },
'ne' => sub { $_[0]->nequal($_[1]) },
'==' => sub { $_[0]->equal($_[1]) },
'!=' => sub { $_[0]->nequal($_[1]) },
'fallback' => 1;
sub clone() {
my $self = shift;
my $class = ref( $self );
my $copy = new2( $self );
bless $copy, $class;
return $copy;
}
sub new() {
my $class = shift;
my $iterator;
my $invalid_args;
if( scalar(@_) == 0 ) {
$iterator = new1();
} elsif( scalar(@_) == 1 and ref( $_[1] ) eq $class ) {
$iterator = new2(@_);
} else {
$invalid_args = 1;
}
if( $invalid_args ) {
Carp::carp( "USAGE: $class->new(), $class->new(\$iterator)" );
exit;
}
bless $iterator, $class;
return $iterator;
}
1;
|