---
name: "CSS::DOM::Array"
section: "3pm"
platform: "linux"
package: "libcss-dom-perl"
version: "0.17-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/CSS::DOM::Array"
---

# CSS::DOM::Array(3pm)

Array class for CSS::DOM

## NAME

CSS::DOM::Array - Array class for CSS::DOM

## VERSION

Version 0.17

## SYNOPSIS

```
  use CSS::DOM::Array;

  $array = new CSS::DOM::Array 'this', 'that';
  @$array;
  $array->[0];
  # etc.
  $array->length;
  $array->item(0);
```

## DESCRIPTION

This module serves as a base class for array-like objects required by 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.

## METHODS

### Constructor

```
  $array = new CSS::DOM::Array;
```

Creates a new blessed array.

### Object Methods

- length

  Returns the length of the array.

- item ( $index)

  Returns the array element at the given `$index`.

## SEE ALSO

CSS::DOM

CSS::DOM::RuleList

CSS::DOM::StyleSheetList

CSS::DOM::MediaList
