/usr/share/perl5/CSS/DOM/Array.pm is in libcss-dom-perl 0.14-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 73 74 75 76 77 78 79 | package CSS::DOM::Array;
$VERSION = '0.14';
use warnings;
use strict;
sub new {
bless[@_[1..$#_]], shift;
}
sub length { scalar @{+shift} }
sub item {
my $self = shift;
$_[0] > $#$self ? () : $self->[$_[0]]
};
!()__END__()!
=head1 NAME
CSS::DOM::Array - Array class for CSS::DOM
=head1 VERSION
Version 0.14
=head1 SYNOPSIS
use CSS::DOM::Array;
$array = new CSS::DOM::Array 'this', 'that';
@$array;
$array->[0];
# etc.
$array->length;
$array->item(0);
=head1 DESCRIPTION
This module serves as a base class for array-like objects required by
L<CSS::DOM>.
A CSS::DOM::Array object is simply a blessed array reference. You can use
it as an array directly, or use the methods below.
=head1 METHODS
=head2 Constructor
$array = new CSS::DOM::Array;
Creates a new blessed array.
=head2 Object Methods
=over 4
=item length
Returns the length of the array.
=item item ( $index)
Returns the array element at the given C<$index>.
=back
=head1 SEE ALSO
L<CSS::DOM>
L<CSS::DOM::RuleList>
L<CSS::DOM::StyleSheetList>
L<CSS::DOM::MediaList>
|