# LibTmux::SessionSelection::one

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Perl
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-perl/blob/352715a4fa66a96eed7763b90daaa536aa2f121d/packages/core/lib/LibTmux/Selection.pm#L119
- **Inherited from:** LibTmux::Selection
- **Page:** https://libtmux.org/en/perl/latest/reference/libtmux-sessionselection-one/

```
sub one($self, @criteria)
```

`one($criteria?)` returns one entity. Zero throws [`NoMatch`](/en/perl/latest/reference/libtmux-x-nomatch/); a second occurrence throws [`MultipleMatches`](/en/perl/latest/reference/libtmux-x-multiplematches/), reporting at least two and their IDs. Two occurrences of one identity are still ambiguous.

## Methods

## Parameters

- `criteria`
