This file is indexed.

/usr/share/perl5/Apache/Singleton/Request.pm is in libapache-singleton-perl 0.07-1.

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
package Apache::Singleton::Request;

use strict;
use vars qw($VERSION);
$VERSION = '0.06';

use Apache::Singleton;
use base qw(Apache::Singleton);

BEGIN { 
	use constant MP2 => eval { require mod_perl; $mod_perl::VERSION > 1.99 };
	die "mod_perl is required to run this module: $@" if $@;

	if (MP2) { 
		require Apache::RequestUtil; 
	}
	else { 
		require Apache;
	}
}

sub _get_instance {
    my $class = shift;
    my $r = Apache->request;
    my $key = "apache_singleton_$class";
    return $r->pnotes($key);
}

sub _set_instance {
    my($class, $instance) = @_;
    my $r = Apache->request;
    my $key = "apache_singleton_$class";
    $r->pnotes($key => $instance);
}

1;
__END__

=head1 NAME

Apache::Singleton::Request - One instance per One Request

=head1 SYNOPSIS

  package Printer;
  use base qw(Apache::Singleton::Request);

=head1 DESCRIPTION

See L<Apache::Singleton>.

=head1 SEE ALSO

L<Apache::Singleton>

=cut