---
name: "Catmandu::IterableOnce"
section: "3pm"
platform: "linux"
package: "libcatmandu-perl"
version: "1.2024-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Catmandu::IterableOnce"
---

# Catmandu::IterableOnce(3pm)

Role for iterable classes that can only iterate once

## NAME

Catmandu::IterableOnce - Role for iterable classes that can only iterate once

## SYNOPSIS

```
    package MySingleUseIterator;
    use Moo;
    with 'Catmandu::Iterable';
    with 'Catmandu::Iterableonce';
    sub  generator {
        # ...
    }
```

## SEE ALSO

Catmandu::Iterable.
