# LibTmux::Pane::index

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Perl
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-perl/blob/352715a4fa66a96eed7763b90daaa536aa2f121d/packages/core/lib/LibTmux/Pane.pm#L13
- **Page:** https://libtmux.org/en/perl/latest/reference/libtmux-pane-index/

```
sub index($self)
```

integer. Local captured data; no I/O.

## Methods

## In other ports

A pane's index in its window

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Pane.index`](/en/py/latest/reference/libtmux-pane-index/) (property) |
| Ruby | [`LibTmux::PaneSnapshot#index`](/en/ruby/latest/reference/libtmux-panesnapshot-index/) (method) |
| Lua | [`libtmux.SnapshotPane.index`](/en/lua/latest/reference/libtmux-snapshotpane-index/) (attribute) |
| Elixir | [`LibTmux.Pane.index`](/en/elixir/latest/reference/libtmux-pane-index/) (property) |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | no accessor; the field is read from `Pane.format`, tmux's own row |
| Rust | [`pane.Pane.index`](/en/rs/latest/reference/pane-pane-index/) (method) |
| Go | [`tmux.Pane.Index`](/en/go/latest/reference/tmux-pane-index/) (method) |
| Java | [`io.github.libtmux.Pane.index`](/en/java/latest/reference/io-github-libtmux-pane-pane-index/) (method) |
| C# | [`LibTmux.Pane.Index`](/en/csharp/latest/reference/libtmux-pane-index/) (property) |
| C++ | [`libtmux::Pane::index`](/en/cxx/latest/reference/libtmux-pane-index-56y3/) (method) |
| Swift | [`Pane.index`](/en/swift/latest/reference/pane-index/) (property) |
| OCaml | [`Libtmux.Pane.index`](/en/ocaml/latest/reference/libtmux-pane-index/) (function) |

No equivalent is recorded in PowerShell, Julia, Erlang, Common Lisp, Clojure, Kotlin, Scala or F#.
