This file is indexed.

/usr/share/perl5/Data/Serializer/XML/Simple.pm is in libdata-serializer-perl 0.60-2.

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
package Data::Serializer::XML::Simple;
BEGIN { @Data::Serializer::XML::Simple::ISA = qw(Data::Serializer) }

use warnings;
use strict;
use XML::Simple qw(); 
use vars qw($VERSION @ISA);

$VERSION = '0.03';


sub serialize {
    my $self = (shift);
    my %options = ref $self->{options} eq 'HASH' ? %{$self->{options}}: ();
    my $xml = XML::Simple->new(keyattr => [ 'name'], %options);
    return $xml->XMLout( (shift) );
}

sub deserialize {
    my $self = (shift);
    my %options = ref $self->{options} eq 'HASH' ? %{$self->{options}}: ();
    my $xml = XML::Simple->new(keyattr => [ 'name'], %options);
    return $xml->XMLin( (shift) );
}

1;
__END__
# 

=head1 NAME

Data::Serializer::XML::Simple - Creates bridge between Data::Serializer and XML::Simple

=head1 SYNOPSIS

  use Data::Serializer::XML::Simple;

=head1 DESCRIPTION

Module is used internally to Data::Serializer

Any options are passed through to XML::Simple.  See XML::Simple(3) for details.

=over 4

=item B<serialize> - Wrapper to normalize serializer method name

=item B<deserialize> - Wrapper to normalize deserializer method name

=back

=head1 AUTHOR
 
Neil Neely <neil@neely.cx>
    
=head1 COPYRIGHT
 
  Copyright 2004 by Neil Neely.  All rights reserved.
  This program is free software; you can redistribute it
  and/or modify it under the same terms as Perl itself.
  
=head1 SEE ALSO

perl(1), Data::Serializer(3), XML::Simple(3).

=cut