Menu Indexes

Menus have indexes for manipulating individual menu items. They are:

n

Menu item n, with 0 representing the first item

active

The current menu item

end or last

The last menu item

none

No menu item

@ n

The menu item closest to the y coordinate specified by n

pattern

The first menu item with text that matches the pattern

Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.