This file is indexed.

/usr/share/perl5/XML/XQL/Debug.pm is in libxml-xql-perl 0.68-6.

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
142
143
144
package XML::XQL::Debug;

# Replaces the filepath separator if necessary (i.e for Macs and Windows/DOS)
sub filename
{
    my $name = shift;

    if ((defined $^O and
	 $^O =~ /MSWin32/i ||
	 $^O =~ /Windows_95/i ||
	 $^O =~ /Windows_NT/i) ||
	(defined $ENV{OS} and
	 $ENV{OS} =~ /MSWin32/i ||
	 $ENV{OS} =~ /Windows_95/i ||
	 $ENV{OS} =~ /Windows_NT/i))
    {
	$name =~ s!/!\\!g;
    }
    elsif  ((defined $^O and $^O =~ /MacOS/i) ||
	    (defined $ENV{OS} and $ENV{OS} =~ /MacOS/i))
    {
	$name =~ s!/!:!g;
	$name = ":$name";
    }
    $name;
}

sub dump
{
    new XML::XQL::Debug::Dump->pr (@_);
}

sub str
{
    my $dump = new XML::XQL::Debug::Dump;
    $dump->pr (@_);
    $dump->{Str} =~ tr/\012/\n/;	# for MacOS where '\012' != '\n'
    $dump->{Str};
}

package XML::XQL::Debug::Dump;

sub new
{
    my ($class, %args) = @_;
    $args{Indent} = 0;
    $args{Str} = "";
    bless \%args, $class;
}

sub indent
{
    $_[0]->p ("  " x $_[0]->{Indent});
}

sub ip
{
    my $self = shift;
    $self->indent;
    $self->p (@_);
}

sub pr
{
    my ($self, $x) = @_;
    if (ref($x))
    {
	if (ref($x) eq "ARRAY")
	{
	    if (@$x == 0)
	    {
		$self->ip ("<array/>\n");
		return;
	    }

	    $self->ip ("<array>\n");
	    $self->{Indent}++;

	    for (my $i = 0; $i < @$x; $i++)
	    {
		$self->ip ("<item index='$i'>\n");
		$self->{Indent}++;

		$self->pr ($x->[$i]);

		$self->{Indent}--;
		$self->ip ("</item>\n");
	    }
	    $self->{Indent}--;
	    $self->ip ("</array>\n");
	}
	else
	{
	    $self->ip ("<obj type='" . ref($x) . "'>");
	    
	    if ($x->isa ('XML::XQL::PrimitiveType'))
	    {
		$self->p ($x->xql_toString);
	    }
	    else
	    {
		$self->p ("\n");
		$self->{Indent}++;
		
		if ($x->isa ("XML::DOM::Node"))
		{
		    # print node plus subnodes as XML
		    $self->p ($x->toString);
		}
		$self->p ("\n");

		$self->{Indent}--;
		$self->indent;
	    }
	    $self->p ("</obj>\n");
	}
    }
    elsif (defined $x)
    {
	$self->indent;
	$self->p ("<str>$x<str/>\n");	
    }
    else
    {
	$self->indent;
	$self->p ("<undef/>\n");
    }
}

sub p
{
    my $self = shift;

    if ($self->{Dump})
    {
	print @;
    }
    else
    {
	$self->{Str} .= join ("", @_);
    }
}

1;