1CSS::DOM::Array(3) User Contributed Perl Documentation CSS::DOM::Array(3)
2
3
4
6 CSS::DOM::Array - Array class for CSS::DOM
7
9 Version 0.17
10
12 use CSS::DOM::Array;
13
14 $array = new CSS::DOM::Array 'this', 'that';
15
16 @$array;
17 $array->[0];
18 # etc.
19
20 $array->length;
21 $array->item(0);
22
24 This module serves as a base class for array-like objects required by
25 CSS::DOM.
26
27 A CSS::DOM::Array object is simply a blessed array reference. You can
28 use it as an array directly, or use the methods below.
29
31 Constructor
32 $array = new CSS::DOM::Array;
33
34 Creates a new blessed array.
35
36 Object Methods
37 length
38 Returns the length of the array.
39
40 item ( $index)
41 Returns the array element at the given $index.
42
44 CSS::DOM
45
46 CSS::DOM::RuleList
47
48 CSS::DOM::StyleSheetList
49
50 CSS::DOM::MediaList
51
52
53
54perl v5.34.0 2021-07-22 CSS::DOM::Array(3)