PerlMenu 4.0


The "" package is a Perl5 package (built into your Perl program with a "use" command) that automates curses-based full screen menus and data entry. It also functions under Perl4/curseperl.

Using three simple calls, any number of items may be selected from a single or multiple-page menu by moving an arrow to the desired item (or directly entering the selection number displayed on the screen). In addition to simple "single one-shot selection menus", "radio button" style menus and "multiple-item-selection" menus are provided. Paging through multiple-page menus is handled automatically. Menu titles, sub-titles, prompts, "single column", and "multiple column" menus are supported.

Using two simple calls a full-screen data entry template may be loaded and a fully-titled data entry input screen may be created. Defaults, maximum field lengths, and numeric-only data are supported.

The "" package uses curses interface routine calls supplied by the Curses extension for Perl5 (you should be running AT LEAST Perl 5.001). A "" package can be created which uses curses interface routine calls supplied by the "curseperl" package for Perl4. All functions and features are identical whether you are using Perl4 or Perl5.


BEGIN { $Curses::OldCurses = 1; }
use Curses;
use perlmenu;
&menu_init(1,"Select an Animal"); # Init menu

&menu_item("Collie","dog"); # Add item
&menu_item("Shetland","pony"); # Add item
&menu_item("Persian","cat"); # Add last item

$sel = &menu_display("Which animal?"); # Get user selection

if ($sel eq "%UP%") { ... }
if ($sel eq "dog") { ... }

Getting PerlMenu

Distribution Points
Source bundle (via FTP)
Distribution Contents

Other Info

Release Notes


PerlMenu - Perl library module for curses-based menus & data-entry templates Copyright (C) 1992-2007 Information Technology Services Iowa State University Ames, Iowa (USA)

This Perl library module is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License (as published by the Free Software Foundation) or the Artistic License.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.

You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.