This file is indexed.

/usr/share/perl5/Tree/XPathEngine/Variable.pm is in libtree-xpathengine-perl 0.05-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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# $Id: /tree-xpathengine/trunk/lib/Tree/XPathEngine/Variable.pm 17 2006-02-12T08:00:01.814064Z mrodrigu  $

package Tree::XPathEngine::Variable;
use strict;

# This class does NOT contain 1 instance of a variable
# see the Tree::XPathEngine class for the instances
# This class simply holds the name of the var

sub new {
    my $class = shift;
    my ($pp, $name) = @_;
    bless { name => $name, path_parser => $pp }, $class;
}

sub as_string {
    my $self = shift;
    '\$' . $self->{name};
}

sub as_xml {
    my $self = shift;
    return "<Variable>" . $self->{name} . "</Variable>\n";
}

sub xpath_get_value {
    my $self = shift;
    $self->{path_parser}->get_var($self->{name});
}

sub xpath_set_value {
    my $self = shift;
    my ($val) = @_;
    $self->{path_parser}->set_var($self->{name}, $val);
}

sub evaluate {
    my $self = shift;
    my $val = $self->xpath_get_value;
    return $val;
}

1;

__END__
=head1 NAME

Tree::XPathEngine::Variable - a variable in a Tree::XPathEngine object

=head1 METHODS

This class does NOT contain 1 instance of a variable, it's in the 
Tree::XPathEngine class. This class simply holds the name of the var,
for use by the engine when evaluating the query

=head2 new

=head2 xpath_set_value

=head2 xpath_get_value

synonym of get_value

=head2 evaluate

=head2 as_string

dump the variable call in the XPath expression as a string

=head2 as_xml

dump the variable call in the XPath expression as xml