in reply to Re^2: Building a Perl Menu
in thread Building a Perl Menu
If it is really command line, then the simplest solution would surely be the select command within the Korn shell e.g.
#! /bin/ksh PS3="Select an item:" select ITEM in opt1 opt2 opt3 opt4 ; do case "$ITEM" in opt1) ... ;; opt2) ... ;; opt3) ... ;; opt4) ... ;; *) echo "Bad call" ;; esac done
|
|---|