# LibTmux::Server::batch

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Perl
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-perl/blob/352715a4fa66a96eed7763b90daaa536aa2f121d/packages/core/lib/LibTmux/Server.pm#L974
- **Page:** https://libtmux.org/en/perl/latest/reference/libtmux-server-batch/

```
sub batch($self, $requests)
```

`batch(arrayref_of_argv)`.

Perform ordered independent literal requests and return a fresh array reference of {result, error} records in input order. Each result is [`LibTmux::CommandResult`](/en/perl/latest/reference/libtmux-commandresult/) or undef; each dispatch error is the original typed [`LibTmux::X`](/en/perl/latest/reference/libtmux-x/) or undef. Nonzero command exits stay raw results. An empty input returns an empty array without command I/O. Requests are attempted in order, without rollback or tmux command-list attribution.


```perl
    my $results = $server->batch([['display-message', '-p', '#{version}']]);
```

## Methods

## Parameters

- `requests`
